Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 61f365a

Browse files
committed
chore(timepicker): change to on/off
1 parent ec2d9ad commit 61f365a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/timepicker/timepicker.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,21 +220,21 @@ angular.module('ui.bootstrap.timepicker', [])
220220
return e.detail || delta > 0;
221221
};
222222

223-
hoursInputEl.bind('mousewheel wheel', function(e) {
223+
hoursInputEl.on('mousewheel wheel', function(e) {
224224
if (!disabled) {
225225
$scope.$apply(isScrollingUp(e) ? $scope.incrementHours() : $scope.decrementHours());
226226
}
227227
e.preventDefault();
228228
});
229229

230-
minutesInputEl.bind('mousewheel wheel', function(e) {
230+
minutesInputEl.on('mousewheel wheel', function(e) {
231231
if (!disabled) {
232232
$scope.$apply(isScrollingUp(e) ? $scope.incrementMinutes() : $scope.decrementMinutes());
233233
}
234234
e.preventDefault();
235235
});
236236

237-
secondsInputEl.bind('mousewheel wheel', function(e) {
237+
secondsInputEl.on('mousewheel wheel', function(e) {
238238
if (!disabled) {
239239
$scope.$apply(isScrollingUp(e) ? $scope.incrementSeconds() : $scope.decrementSeconds());
240240
}
@@ -244,7 +244,7 @@ angular.module('ui.bootstrap.timepicker', [])
244244

245245
// Respond on up/down arrowkeys
246246
this.setupArrowkeyEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
247-
hoursInputEl.bind('keydown', function(e) {
247+
hoursInputEl.on('keydown', function(e) {
248248
if (!disabled) {
249249
if (e.which === 38) { // up
250250
e.preventDefault();
@@ -258,7 +258,7 @@ angular.module('ui.bootstrap.timepicker', [])
258258
}
259259
});
260260

261-
minutesInputEl.bind('keydown', function(e) {
261+
minutesInputEl.on('keydown', function(e) {
262262
if (!disabled) {
263263
if (e.which === 38) { // up
264264
e.preventDefault();
@@ -272,7 +272,7 @@ angular.module('ui.bootstrap.timepicker', [])
272272
}
273273
});
274274

275-
secondsInputEl.bind('keydown', function(e) {
275+
secondsInputEl.on('keydown', function(e) {
276276
if (!disabled) {
277277
if (e.which === 38) { // up
278278
e.preventDefault();
@@ -339,7 +339,7 @@ angular.module('ui.bootstrap.timepicker', [])
339339
}
340340
};
341341

342-
hoursInputEl.bind('blur', function(e) {
342+
hoursInputEl.on('blur', function(e) {
343343
ngModelCtrl.$setTouched();
344344
if (modelIsEmpty()) {
345345
makeValid();
@@ -371,7 +371,7 @@ angular.module('ui.bootstrap.timepicker', [])
371371
}
372372
};
373373

374-
minutesInputEl.bind('blur', function(e) {
374+
minutesInputEl.on('blur', function(e) {
375375
ngModelCtrl.$setTouched();
376376
if (modelIsEmpty()) {
377377
makeValid();
@@ -397,7 +397,7 @@ angular.module('ui.bootstrap.timepicker', [])
397397
}
398398
};
399399

400-
secondsInputEl.bind('blur', function(e) {
400+
secondsInputEl.on('blur', function(e) {
401401
if (modelIsEmpty()) {
402402
makeValid();
403403
} else if (!$scope.invalidSeconds && $scope.seconds < 10) {

0 commit comments

Comments
 (0)