Skip to content

Commit

Permalink
Fix #12333. Chrome needs $.browser.webkit too.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Aug 21, 2012
1 parent ac043b1 commit 465959e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/deprecated.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ if ( matched.browser ) {
browser.version = matched.version; browser.version = matched.version;
} }


// Deprecated, use jQuery.browser.webkit instead // Chrome is Webkit, but Webkit is also Safari.
// Maintained for back-compat only if ( browser.chrome ) {
if ( browser.webkit ) { browser.webkit = true;
} else if ( browser.webkit ) {
browser.safari = true; browser.safari = true;
} }


Expand All @@ -58,5 +59,5 @@ jQuery.sub = function() {
var rootjQuerySub = jQuerySub(document); var rootjQuerySub = jQuerySub(document);
return jQuerySub; return jQuerySub;
}; };

})(); })();

0 comments on commit 465959e

Please sign in to comment.