From 465959e75c08f7f1961071832a8c27a205bf05d0 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Mon, 20 Aug 2012 23:09:46 -0400 Subject: [PATCH] Fix #12333. Chrome needs $.browser.webkit too. --- src/deprecated.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/deprecated.js b/src/deprecated.js index 331755ff3..af2b6223d 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -30,9 +30,10 @@ if ( matched.browser ) { browser.version = matched.version; } -// Deprecated, use jQuery.browser.webkit instead -// Maintained for back-compat only -if ( browser.webkit ) { +// Chrome is Webkit, but Webkit is also Safari. +if ( browser.chrome ) { + browser.webkit = true; +} else if ( browser.webkit ) { browser.safari = true; } @@ -58,5 +59,5 @@ jQuery.sub = function() { var rootjQuerySub = jQuerySub(document); return jQuerySub; }; - + })(); -- 2.39.5