]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:05:32 +0000 (22:05 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:58 +0000 (14:27 -0400)
tests/lib/helper.js

index 80cb27274fc85c16b7c9ce6f90a3a378ce472977..cc7d8c00032a4729e71859057db6ec8ea54d33ad 100644 (file)
@@ -21,11 +21,11 @@ exports.onFocus = function( element, onFocus ) {
                if ( !event.originalEvent ) {
                        return;
                }
-               element.unbind( "focus", fn );
+               element.off( "focus", fn );
                onFocus();
        };
 
-       element.bind( "focus", fn )[ 0 ].focus();
+       element.on( "focus", fn )[ 0 ].focus();
 };
 
 return exports;