Skip to content

Commit 27d746c

Browse files
committed
Tests: Remove core event/alias and deprecated module dependencies
1 parent c79bc7f commit 27d746c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ exports.onFocus = function( element, onFocus ) {
2121
if ( !event.originalEvent ) {
2222
return;
2323
}
24-
element.unbind( "focus", fn );
24+
element.off( "focus", fn );
2525
onFocus();
2626
};
2727

28-
element.bind( "focus", fn )[ 0 ].focus();
28+
element.on( "focus", fn )[ 0 ].focus();
2929
};
3030

3131
return exports;

0 commit comments

Comments
 (0)