-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Use standard event.preventDefault when available (event.returnValue is deprecated) #4557
Comments
IIRC, IE9 still listens to |
I believe the issue is in Jquery and not in the Ember/Backbone/Angular. |
@caitp IE9 seems to support event.preventDefault http://msdn.microsoft.com/en-us/library/ff975460%28VS.85%29.aspx |
This is definitely a JQuery issue. I'm not using Angular and also received this message. |
Yes – it is an issue in the jQuery library, which has been fixed in the tickets listed above. The problem is that it is also an issue in |
Have the same problem - really annoying :-) |
Me too |
try using the latest jquery file |
I'm using bootstrap3 and am getting this warning, |
That's jquery issue raised as a bug: |
same console notice when receiving Chromes internal Page for "Error 502" - this seems to be a generally problem to use this js property marked as "deprecated". |
I'm not using jQuery at all. The warning seems to be coming from jqLight. I opened this issue because it appears that jQuery has made some changes to resolve the issue and that similar changes need to be made to jqLight. |
I'm NOT using jQuery, just Google Maps API and Javascript and I'm getting this: "Please use the standard event.preventDefault() instead.". Any clue? |
@jasford Ditto. I'm trying out angular without jquery and I'm getting the same error. According to this StackOverflow question the issue has been fixed in the jQuery source as of v1.11. I think it's just a matter of updating the jqLite source in angular.js. Note: I'm using the Angular.js 1.2.4 source from apis.google.com. Here are my includes:
|
All, just use the newest version of jquery it will fix it. |
I am not using jQuery. Warning occurs in angular.js:2605 - 1.2.7 |
can u upload example code? I can't get the error |
still occurs with v1.2.10-build.2163+sha.6c9131e - comes from JQLite inside angular as mentioned above. |
I just edited the issue description above to make it even more clear that this is not an issue with jQuery – upgrading jQuery will not resolve the issue since, like @ahoereth and others above, I am not using jQuery at all. |
@jasford is totally correct. would be nice to see a fix for this. 4 months is a long time. |
@lookfirst have you (or anyone else) contributed a fix for this? I'm looking through the PRs but I'm not sure if anyone has yet. |
Would be good to get rid of this pesky warning. |
This is a relevant jQuery commit: jquery/jquery@4671ef1 If anyone is interested in having it working with jqLite, pull request welcome! (note that this is just a warning, everything works fine) |
…elated to issue angular#4557. Worked with @bullwrinkle on this.
…elated to issue angular#4557. Worked with @bullwrinkle on this.
…ent.returnValue. Related to issue angular#4557. Worked with @bullwrinkle on this.
…ent.returnValue. Related to issue #4557. Worked with @bullwrinkle on this.
#10181 took care of the last returnValue reference in our codebase, and I don't see the warning any longer. |
…ent.returnValue. Related to issue #4557. Worked with @bullwrinkle on this.
I'm getting this warning from Chrome:
Pointing to these lines of angular.js:
This is a deprecation warning. Everything still works just fine, but it seems like the issue should be addressed by AngularJS. I'm still new enough to AngularJS that I don't feel comfortable putting together a pull request myself.
Note that my Chrome version is 31.0.1650.26 beta
EDIT: This is not a jQuery issue. I'm providing links to the jQuery tickets below for reference since the issue is similar. I am not using jQuery at all, so simply upgrading jQuery will not resolve the issue.
For reference, these jQuery tickets looks very similar. The first one, flagged as a duplicate of the second, shows the exact same Chrome warning message I'm seeing. The second one shows the fix jQuery made to begin using the standard
event.preventDefault
:The text was updated successfully, but these errors were encountered: