@@ -220,21 +220,21 @@ angular.module('ui.bootstrap.timepicker', [])
220
220
return e . detail || delta > 0 ;
221
221
} ;
222
222
223
- hoursInputEl . bind ( 'mousewheel wheel' , function ( e ) {
223
+ hoursInputEl . on ( 'mousewheel wheel' , function ( e ) {
224
224
if ( ! disabled ) {
225
225
$scope . $apply ( isScrollingUp ( e ) ? $scope . incrementHours ( ) : $scope . decrementHours ( ) ) ;
226
226
}
227
227
e . preventDefault ( ) ;
228
228
} ) ;
229
229
230
- minutesInputEl . bind ( 'mousewheel wheel' , function ( e ) {
230
+ minutesInputEl . on ( 'mousewheel wheel' , function ( e ) {
231
231
if ( ! disabled ) {
232
232
$scope . $apply ( isScrollingUp ( e ) ? $scope . incrementMinutes ( ) : $scope . decrementMinutes ( ) ) ;
233
233
}
234
234
e . preventDefault ( ) ;
235
235
} ) ;
236
236
237
- secondsInputEl . bind ( 'mousewheel wheel' , function ( e ) {
237
+ secondsInputEl . on ( 'mousewheel wheel' , function ( e ) {
238
238
if ( ! disabled ) {
239
239
$scope . $apply ( isScrollingUp ( e ) ? $scope . incrementSeconds ( ) : $scope . decrementSeconds ( ) ) ;
240
240
}
@@ -244,7 +244,7 @@ angular.module('ui.bootstrap.timepicker', [])
244
244
245
245
// Respond on up/down arrowkeys
246
246
this . setupArrowkeyEvents = function ( hoursInputEl , minutesInputEl , secondsInputEl ) {
247
- hoursInputEl . bind ( 'keydown' , function ( e ) {
247
+ hoursInputEl . on ( 'keydown' , function ( e ) {
248
248
if ( ! disabled ) {
249
249
if ( e . which === 38 ) { // up
250
250
e . preventDefault ( ) ;
@@ -258,7 +258,7 @@ angular.module('ui.bootstrap.timepicker', [])
258
258
}
259
259
} ) ;
260
260
261
- minutesInputEl . bind ( 'keydown' , function ( e ) {
261
+ minutesInputEl . on ( 'keydown' , function ( e ) {
262
262
if ( ! disabled ) {
263
263
if ( e . which === 38 ) { // up
264
264
e . preventDefault ( ) ;
@@ -272,7 +272,7 @@ angular.module('ui.bootstrap.timepicker', [])
272
272
}
273
273
} ) ;
274
274
275
- secondsInputEl . bind ( 'keydown' , function ( e ) {
275
+ secondsInputEl . on ( 'keydown' , function ( e ) {
276
276
if ( ! disabled ) {
277
277
if ( e . which === 38 ) { // up
278
278
e . preventDefault ( ) ;
@@ -339,7 +339,7 @@ angular.module('ui.bootstrap.timepicker', [])
339
339
}
340
340
} ;
341
341
342
- hoursInputEl . bind ( 'blur' , function ( e ) {
342
+ hoursInputEl . on ( 'blur' , function ( e ) {
343
343
ngModelCtrl . $setTouched ( ) ;
344
344
if ( modelIsEmpty ( ) ) {
345
345
makeValid ( ) ;
@@ -371,7 +371,7 @@ angular.module('ui.bootstrap.timepicker', [])
371
371
}
372
372
} ;
373
373
374
- minutesInputEl . bind ( 'blur' , function ( e ) {
374
+ minutesInputEl . on ( 'blur' , function ( e ) {
375
375
ngModelCtrl . $setTouched ( ) ;
376
376
if ( modelIsEmpty ( ) ) {
377
377
makeValid ( ) ;
@@ -397,7 +397,7 @@ angular.module('ui.bootstrap.timepicker', [])
397
397
}
398
398
} ;
399
399
400
- secondsInputEl . bind ( 'blur' , function ( e ) {
400
+ secondsInputEl . on ( 'blur' , function ( e ) {
401
401
if ( modelIsEmpty ( ) ) {
402
402
makeValid ( ) ;
403
403
} else if ( ! $scope . invalidSeconds && $scope . seconds < 10 ) {
0 commit comments