We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2bacc2 + 9f62fc9 commit ce8b268Copy full SHA for ce8b268
lib/web/magnifier/magnifier.js
@@ -541,11 +541,9 @@
541
542
showWrapper = false;
543
$(thumbObj).on('load', function () {
544
- if (data.length > 0) {
+ if (data.hasOwnProperty(idx)) {
545
data[idx].status = 1;
546
-
547
$(largeObj).on('load', function () {
548
549
if (largeObj.width > largeWrapper.width() || largeObj.height > largeWrapper.height()) {
550
showWrapper = true;
551
bindEvents(eventType, thumb);
@@ -559,7 +557,6 @@
559
557
updateLensOnLoad(idx, thumb, largeObj, largeWrapper);
560
558
}
561
});
562
563
largeObj.src = data[idx].largeUrl;
564
565
0 commit comments