Skip to content

Commit 2eb3c93

Browse files
committed
Fixed deprecated jquery issues
1 parent 6f78f2e commit 2eb3c93

File tree

3 files changed

+25
-892
lines changed

3 files changed

+25
-892
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,11 @@ define([
179179
this.updateHeight();
180180
this.scrollToPreview();
181181
} else {
182-
img.load(function () {
183-
this.updateHeight();
184-
this.scrollToPreview();
185-
}.bind(this));
182+
var self = this;
183+
img.on('load', function () {
184+
self.updateHeight();
185+
self.scrollToPreview();
186+
});
186187
}
187188
},
188189

0 commit comments

Comments
 (0)