Skip to content

Commit d54d06e

Browse files
Copilotkdinev
andcommitted
Replace deprecated shorthand event handlers with .on() method
Co-authored-by: kdinev <1472513+kdinev@users.noreply.github.com>
1 parent 3504ef6 commit d54d06e

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/js/modules/infragistics.ui.htmleditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@
19341934
}
19351935
});
19361936

1937-
$(document).click(function (e) {
1937+
$(document).on('click', function (e) {
19381938
var $tarParents = $(e.target).parents();
19391939

19401940
// Hide all popovers except when clicking on one of them

src/js/modules/infragistics.ui.rating.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
border: "0px",
441441
outline: "none"
442442
};
443-
me._foc = $("<input type=\"button\"/>").css(v).appendTo(cont).focus(function (evt) {
443+
me._foc = $("<input type=\"button\"/>").css(v).appendTo(cont).on('focus', function (evt) {
444444
if (o.disabled || me._fcs) {
445445
return;
446446
}
@@ -456,7 +456,7 @@
456456
me._hov.css("visibility", "visible");
457457
}
458458
me._elem.addClass(css.active);
459-
}).blur(function (e) {
459+
}).on('blur', function (e) {
460460
if (o.disabled || !me._fcs) {
461461
return;
462462
}

src/js/modules/infragistics.ui.splitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@
11851185
// Z.K. Bug #201281 Click event does not fire on the click of the splitter.
11861186
// This is happening because the bar element is cloned and the click event is not fired.
11871187
// In order to overcome this mouse up and down events are handled and on mouse up "click" is triggered
1188-
clonedBar.mouseup(function () {
1188+
clonedBar.on('mouseup', function () {
11891189

11901190
if (splitter.options.orientation === "vertical") {
11911191
if (opt.barMouseDown && Math.round(offset.left) ===

src/js/modules/infragistics.ui.toolbarbutton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
self = this;
267267

268268
// Toggle element state on click
269-
this.element.click(function (e) {
269+
this.element.on('click', function (e) {
270270
if (o.allowToggling) {
271271
if (o.isSelected) {
272272
noCancel = self._triggerDeactivating(e);

src/js/modules/infragistics.ui.zoombar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@
744744
},
745745
text: false
746746
})
747-
.click(this._leftRightButtonHandler)
748-
.keyup(this._leftRightButtonHandler)
747+
.on('click', this._leftRightButtonHandler)
748+
.on('keyup', this._leftRightButtonHandler)
749749
.removeClass("ui-corner-all")
750750
.appendTo(container);
751751
},

0 commit comments

Comments
 (0)