Skip to content

Conversation

@mkrvevgn
Copy link
Owner

@mkrvevgn mkrvevgn commented Jun 25, 2020

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 mkrvevgn changed the title Add files via upload To support this library with jQuery 1.8 and newer Jun 25, 2020
@mkrvevgn mkrvevgn changed the title To support this library with jQuery 1.8 and newer To support this library with jQuery 1.8 and newer replaced "load" to "on("load"...) Jun 25, 2020
@mkrvevgn mkrvevgn merged commit 7aac94b into develop Jun 25, 2020
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.

2 participants