Permalink
Browse files

Fix #12333. Chrome needs $.browser.webkit too.

  • Loading branch information...
1 parent ac043b1 commit 465959e75c08f7f1961071832a8c27a205bf05d0 @dmethvin dmethvin committed Aug 21, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/deprecated.js
View
@@ -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;
};
-
+
})();

0 comments on commit 465959e

Please sign in to comment.