Skip to content

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

mkrvevgn added 2 commits June 25, 2020 06:39
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