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

To support this library with jQuery 1.8 and newer replaced "load" to "on("load"...) #205

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mkrvevgn
Copy link

To support this library with jQuery 1.8 and newer
replaced "load" to "on("load"...)

Why?
Because .load(), .unload() or .error() that all are deprecated since jQuery 1.8.
Looked up for these aliases in code and replaced them with the .on() method instead.

For example:
From:
img.load(function(){...});
To:
img.on('load', function(){ ...});

Checked with jQuery 3.5.1 and this library works well

To support this library with jQuery 1.8 and newer replaced "load" to "on("load"...)
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

Successfully merging this pull request may close these issues.

1 participant