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

jQuery.browser() has been removed in jQuery 1.9 #15

Open
kjkjava opened this issue Mar 26, 2013 · 2 comments
Open

jQuery.browser() has been removed in jQuery 1.9 #15

kjkjava opened this issue Mar 26, 2013 · 2 comments

Comments

@kjkjava
Copy link

kjkjava commented Mar 26, 2013

From the jQuery Core 1.9 Upgrade Guide: "The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9."

This causes SketchPad to break if jQuery 1.9 is used without the jQuery Migrate plugin.

@j-ulrich
Copy link

A quick workaround is to replace jQuery.browser.msie with !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ) (taken from jquery.simulate.js).

@ensensis
Copy link

For this one I have implemented another fix.

Find:

if (jQuery.browser.msie) {

Replace by:

var myNav = navigator.userAgent.toLowerCase();
if (myNav.indexOf('msie') != -1) {

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

3 participants