Skip to content

Commit ef323dc

Browse files
committed
MC-41897: Fix jQuery.fn.bind
- Change deprecated functions
1 parent a17775b commit ef323dc

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/grid/resize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ define([
444444
cfg.curResizeElem.model.width = $(cfg.curResizeElem.elems[0]).outerWidth();
445445
cfg.depResizeElem.model.width = $(cfg.depResizeElem.elems[0]).outerWidth();
446446
body.addClass(this.inResizeClass);
447-
body.bind('mousemove', this.mousemoveHandler);
447+
body.on('mousemove', this.mousemoveHandler);
448448
$(window).on('mouseup', this.mouseupHandler);
449449
},
450450

@@ -528,7 +528,7 @@ define([
528528
this.store('storageColumnsData');
529529

530530
body.removeClass(this.inResizeClass);
531-
body.unbind('mousemove', this.mousemoveHandler);
531+
body.off('mousemove', this.mousemoveHandler);
532532
$(window).off('mouseup', this.mouseupHandler);
533533
},
534534

0 commit comments

Comments
 (0)