-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove the use of jQuery 1 functions deprecated in jQuery 3 #50
Comments
Library developer's main site: http://www.jacklmoore.com/colorbox/ |
@laryn, I've got a site that uses Colorbox with jQuery3 and my colorbox images are still working. Can you post a code snippet that demonstrates the crash? |
Other deprecated jQuery code found in the module library:
|
I see the The other instance, the call to load in line 463 is simply a call to the local function load, which is defined in line 912. So, this is not it, unless |
Yep, I may have jumped the gun here. I saw (and copied verbatim) @argiepiano's notice about the deprecation because the issue I was seeing seemed suspiciously similar and I perused the .js loosely and saw that You can decide whether to handle any deprecated code that turned up here or not. Again, sorry about that. |
Seems like the other deprecated calls should still be replaced, though (if possible to maintain B/C). I'll leave this issue open, but change the title. |
This module uses the jquery method
.load()
to handle the load event. This method was deprecated, and causes Javascript to crash when used with jQuery 3, which is now the default for Backdrop.The use of the event handler .
load(function(){})
should be converted to.on('load', function(){})
The text was updated successfully, but these errors were encountered: