Fix compat with the latest jquery
Stolen^w borrowed from https://github.com/keegnotrub/jquery.fancyzoom/issues/3#issue-388966769
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
if (pImage.src !== href) {
|
||||
preloading = true;
|
||||
pImage = new Image();
|
||||
$(pImage).load(function() {
|
||||
$(pImage).on('load', function() {
|
||||
preloading = false;
|
||||
});
|
||||
pImage.src = href;
|
||||
|
||||
Reference in New Issue
Block a user