File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -224,10 +224,10 @@ angular.module('ui.scroll', [])
224
224
225
225
$scope . $on ( '$destroy' , ( ) => {
226
226
unbindEvents ( ) ;
227
- viewport . unbind ( 'mousewheel' , wheelHandler ) ;
227
+ viewport . off ( 'mousewheel' , wheelHandler ) ;
228
228
} ) ;
229
229
230
- viewport . bind ( 'mousewheel' , wheelHandler ) ;
230
+ viewport . on ( 'mousewheel' , wheelHandler ) ;
231
231
232
232
initialize ( ) ;
233
233
@@ -238,13 +238,13 @@ angular.module('ui.scroll', [])
238
238
}
239
239
240
240
function bindEvents ( ) {
241
- viewport . bind ( 'resize' , resizeAndScrollHandler ) ;
242
- viewport . bind ( 'scroll' , resizeAndScrollHandler ) ;
241
+ viewport . on ( 'resize' , resizeAndScrollHandler ) ;
242
+ viewport . on ( 'scroll' , resizeAndScrollHandler ) ;
243
243
}
244
244
245
245
function unbindEvents ( ) {
246
- viewport . unbind ( 'resize' , resizeAndScrollHandler ) ;
247
- viewport . unbind ( 'scroll' , resizeAndScrollHandler ) ;
246
+ viewport . off ( 'resize' , resizeAndScrollHandler ) ;
247
+ viewport . off ( 'scroll' , resizeAndScrollHandler ) ;
248
248
}
249
249
250
250
function reload ( ) {
You can’t perform that action at this time.
0 commit comments