We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79bc7f commit 27d746cCopy full SHA for 27d746c
1 file changed
tests/lib/helper.js
@@ -21,11 +21,11 @@ exports.onFocus = function( element, onFocus ) {
21
if ( !event.originalEvent ) {
22
return;
23
}
24
- element.unbind( "focus", fn );
+ element.off( "focus", fn );
25
onFocus();
26
};
27
28
- element.bind( "focus", fn )[ 0 ].focus();
+ element.on( "focus", fn )[ 0 ].focus();
29
30
31
return exports;
0 commit comments