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

New jQuery version problem #16

Open
odwrotnie opened this issue Dec 6, 2013 · 3 comments
Open

New jQuery version problem #16

odwrotnie opened this issue Dec 6, 2013 · 3 comments

Comments

@odwrotnie
Copy link

When you use jQuery version 1.10.2 there is an issue with: Uncaught TypeError: Cannot read property 'opera' of undefined.

@karma4u101
Copy link
Member

Can you be a bit more specific ?
In what situation and using what widget do you get this type error?
The way you faze the issue it seems to imply that using jquery v1.9.1 works, is this assumption correct ?
Are you pulling in jquery via dependency in you application or (i.e using the lift-jquery-module) or are you dropping it into your apps "js" folder?
I am asking all this question in the hope it will narrow down the issue scope.
best regards Peter

@colinbes
Copy link

Anything more on this issue? I haven't dug too much into it yet (will try tomorrow morning) but I am seeing similar behavior. I have two projects, one older project using jQuery 1.8.2 and one using 1.10.2, the 1.8.2 project works while the 1.10.2 dependent project gives same error as above.

Error I get is:

TypeError: $.browser is undefined

$.browser.opera && $(input.form).bind("submit.autocomplete", function() {

on this section of code (line 84)

    // prevent form submit in opera when selecting with return key
    $.browser.opera && $(input.form).bind("submit.autocomplete", function() {
        if (blockSubmit) {
            blockSubmit = false;
            return false;
        }
    });

@karma4u101
Copy link
Member

JQuery.browser have been removed from jquery as of v1.9 you can add the jquery migrate plugin [1] to restore this api feature.
[1] https://github.com/jquery/jquery-migrate/

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