Skip to content

Commit 0d104bb

Browse files
Replaced jquery#bind usage with jquery#on
1 parent 5a5142e commit 0d104bb

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

misc/angular-bootstrap-prettify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
254254
}
255255
});
256256

257-
element.bind('$destroy', function() {
257+
element.on('$destroy', function() {
258258
deregisterEmbedRootScope();
259259
embedRootScope.$destroy();
260260
});

src/charts/heatmap/heatmap.component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ angular.module('patternfly.charts').component('pfHeatmap', {
362362
ctrl.showLegend = ctrl.showLegend || (ctrl.showLegend === undefined);
363363
ctrl.loadingDone = false;
364364

365-
angular.element($window).bind('resize', function () {
365+
angular.element($window).on('resize', function () {
366366
setSizes();
367367
redraw();
368368
});

src/form/remaining-chars-count/remaining-chars-count.directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ angular.module('patternfly.form').directive('pfRemainingCharsCount', function ($
4040
checkCharactersRemaining();
4141
});
4242

43-
$element.bind('keypress', function (event) {
43+
$element.on('keypress', function (event) {
4444
// Once the charsMaxLimit has been met or exceeded, prevent all keypresses from working
4545
if (blockInputAtMaxLimit && $element.val().length >= charsMaxLimit) {
4646
// Except backspace

src/navigation/vertical-navigation.component.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ angular.module('patternfly.navigation').component('pfVerticalNavigation', {
550550
checkNavState();
551551

552552
// Need to bind to resize event
553-
angular.element($window).bind('resize', function () {
553+
angular.element($window).on('resize', function () {
554554
checkNavState();
555555
});
556556
};
@@ -562,4 +562,3 @@ angular.module('patternfly.navigation').component('pfVerticalNavigation', {
562562
};
563563
},
564564
});
565-

src/utils/fixed-accordion.directive.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ angular.module('patternfly.utils').directive('pfFixedAccordion', function ($wind
160160
}, 100);
161161

162162
// Update on window resizing
163-
$element.bind('resize', function () {
163+
$element.on('resize', function () {
164164
setCollapseHeights();
165165
});
166-
angular.element($window).bind('resize', function () {
166+
angular.element($window).on('resize', function () {
167167
setCollapseHeights();
168168
});
169169
}

0 commit comments

Comments
 (0)