]> source.dussan.org Git - jquery-ui.git/commitdiff
Core tests: Fix double focus in IE
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 4 May 2012 15:14:56 +0000 (17:14 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 4 May 2012 15:14:56 +0000 (17:14 +0200)
tests/unit/core/core.js

index 099ac468cde7df9e8d323f70c75f62c0649dce18..7a78ae34d455765840dcea4fbe4ef12b2ed6f3ef 100644 (file)
@@ -20,6 +20,8 @@ asyncTest( "focus", function() {
                        ok( true, "event triggered" );
                })
                .focus( 500, function() {
+                       // prevent double focus event in IE
+                       $( this ).unbind( "focus" );
                        ok( true, "callback triggered" );
                        start();
                });