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:
jvoisin
2019-05-28 01:13:02 +02:00
parent c5eb7aa37c
commit f4fa75f808
@@ -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;