aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/helper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/helper.js b/tests/lib/helper.js
index 80cb27274..cc7d8c000 100644
--- a/tests/lib/helper.js
+++ b/tests/lib/helper.js
@@ -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;