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

Error with the latest version of jQuery (1.9.0) - plugin not working anymore #25

Open
ghost opened this issue Feb 1, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 1, 2013

Hello,

jQuery.browser was removed from the last version of jQuery (v1.9.0) as it was already deprecated since jQuery v1.3.
More details here: http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

The hashchange plugin isn't working anymore as there is an error.
Any quick workaround please?

Thanks

@ghost ghost mentioned this issue Feb 1, 2013
@DinkDonk
Copy link

A very quick fix, would be to copy line 41 to 75 from
https://github.com/jquery/jquery-migrate/blob/master/src/core.js
and place it in your script. This would restore the old jQuery.browser method.

You could also just load the whole migration plugin, if you don't mind the overhead :-)

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

1 participant