From 27d746cdd67b29ff53947dbb3c04e16de23e965a Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 22:05:32 -0400 Subject: Tests: Remove core event/alias and deprecated module dependencies --- tests/lib/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3