Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.browser was removed #28

Open
matrym opened this issue Mar 23, 2013 · 4 comments
Open

$.browser was removed #28

matrym opened this issue Mar 23, 2013 · 4 comments

Comments

@matrym
Copy link

matrym commented Mar 23, 2013

http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

hashchange depends on it.

@niftylettuce
Copy link

👍

@BillyRayPreachersSon
Copy link

One way around this, to detect IE only, is to use IE's conditional compiler comments. For more information, see http://msdn.microsoft.com/en-us/library/ie/121hztk3(v=vs.94).aspx

Instead of testing for this:

$.browser.msie && !supports_onhashchange ...

test for an msie variable (or whatever you want to call it), that is only set to true if running in IE:

var msie = false;
/*@cc_on
    msie = true;
@*/

msie && !supports_onhashchange ...

@Neil-Partridge
Copy link

This worked fine for me

navigator.userAgent.match(/msie/i) && !supports_onhashchange && (function(){

@konsumer
Copy link

konsumer commented Sep 3, 2013

I think #30 is a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants