aboutsummaryrefslogtreecommitdiffstats
path: root/src/deprecated.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-08-20 23:09:46 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-20 23:09:46 -0400
commit465959e75c08f7f1961071832a8c27a205bf05d0 (patch)
treea005bc296aea22ac875279f66c419c60f8234d50 /src/deprecated.js
parentac043b1bc8096bfbb4be7995af4f5ccc5cad7c19 (diff)
downloadjquery-465959e75c08f7f1961071832a8c27a205bf05d0.tar.gz
jquery-465959e75c08f7f1961071832a8c27a205bf05d0.zip
Fix #12333. Chrome needs $.browser.webkit too.
Diffstat (limited to 'src/deprecated.js')
-rw-r--r--src/deprecated.js9
1 files 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;
};
-
+
})();