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

Cannot read property 'opera' of undefined in Chrome #26

Closed
paulohenriquesg opened this issue Jan 15, 2013 · 8 comments
Closed

Cannot read property 'opera' of undefined in Chrome #26

paulohenriquesg opened this issue Jan 15, 2013 · 8 comments

Comments

@paulohenriquesg
Copy link

Using Chrome 25.0.1364.29 dev, this error happens when the plugin file is loaded:

Uncaught TypeError: Cannot read property 'opera' of undefined

Causing the JS to stop working, from this point on.

The same issue has been spotted in earlier versions of Chrome.

Changing the jQuery version to 1.7.1, this error disappears. Using the latest version of jQuery (1.9.0, as I write this) this error comes back.

@fabiomcosta
Copy link
Owner

Hi @paulohenriquesg,
Which version of jQuery are you using?
Thank you!

@paulohenriquesg
Copy link
Author

Hi, @fabiomcosta! I was using the latest (directly from http://code.jquery.com/jquery-latest.js), wich at this moment is the 1.9.0.

I've updated the issue to reflect that using a older jQuery version (v1.7.1), the error is not presented.

@fabiomcosta
Copy link
Owner

Ok so the $.browser object has been removed in version 1.9.x, we need to check for it and try to make feature detections for the cases that we were using it.
Thank you very much for pointing it out!

@Dieterbe
Copy link

according to https://github.com/flot/flot/blob/0.8.0-beta/NEWS.md :
"Added support for jQuery 1.9 by removing and replacing uses of $.browser. (analysis and patch by Anthony Ryan, pull request #905)"

i was also having this problem, but i updated flot to latest git and it seems to work so far.

@titmael
Copy link

titmael commented May 3, 2013

Hi,

same prob for me and cannot change JQuery version (1.9.1)
According this article : http://chez-syl.fr/2013/02/jquery-1-9-et-browser/ i downloaded and added the deprecated $.browser method and now it works :)

@emaiax
Copy link
Contributor

emaiax commented Jun 6, 2013

Hello guys, this might be fixed on #33 PR, take a look!

@fabiomcosta
Copy link
Owner

We should launch a new version with the fix, but its already fixed in
master :)
Thank you guys!

On Thursday, June 6, 2013, Eduardo Maia wrote:

Hello guys, this might be fixed on #33https://github.com/fabiomcosta/jquery-meiomask/issues/33PR, take a look!


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-19058965
.

Fábio Miranda Costa
twitter: @fabioMiranda
github: fabiomcosta

@fabiomcosta
Copy link
Owner

newest version 1.1.7 includes the fix.
Thank you @emaiax @paulohenriquesg and the others for the report and fix!

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