Skip to content
Permalink
Browse files

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

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

})();

0 comments on commit 465959e

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.