Skip to content

Commit

Permalink
Removing dependency on jQuery.browser
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyATW committed Aug 12, 2012
1 parent fbedf84 commit d6b97a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.scrollTo.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem;

return $.browser.safari || doc.compatMode == 'BackCompat' ?
return /WebKit/.test(navigator.userAgent) || doc.compatMode == 'BackCompat' ?
doc.body :
doc.documentElement;
});
Expand Down

0 comments on commit d6b97a7

Please sign in to comment.