Skip to content

Commit

Permalink
Remove use of $.browser (removed in jQuery 1.9) and use regex
Browse files Browse the repository at this point in the history
Fixes cowboy#42

Ideally we'd improve the feature test to not need this but looks
like we still need it for IE6/7 which pass the feature test but
do need this override in order to work properly.
  • Loading branch information
Krinkle committed Jul 20, 2014
1 parent f539869 commit 8d51dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.ba-hashchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
// vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
// vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
$.browser.msie && !supports_onhashchange && (function(){
/MSIE/.test(navigator.userAgent) && !supports_onhashchange && (function(){
// Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
// when running in "IE7 compatibility" mode.

Expand Down

0 comments on commit 8d51dae

Please sign in to comment.