File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ describe('uiScroll', function () {
433433 function ( viewport ) {
434434 var wheelEventElement = viewport [ 0 ] ;
435435
436- angular . element ( document . body ) . bind ( 'mousewheel' , incrementDocumentScrollCount ) ; //spy for wheel-events bubbling
436+ angular . element ( document . body ) . on ( 'mousewheel' , incrementDocumentScrollCount ) ; //spy for wheel-events bubbling
437437
438438 //simulate multiple wheel-scroll events within viewport
439439
@@ -458,7 +458,7 @@ describe('uiScroll', function () {
458458
459459 } , {
460460 cleanupTest : function ( ) {
461- angular . element ( document . body ) . unbind ( 'mousewheel' , incrementDocumentScrollCount ) ;
461+ angular . element ( document . body ) . off ( 'mousewheel' , incrementDocumentScrollCount ) ;
462462 }
463463 }
464464 ) ;
You can’t perform that action at this time.
0 commit comments