aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/event.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 83f83469a..91940a417 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -1497,15 +1497,14 @@ test(".live()/.die()", function() {
jQuery("#nothiddendiv div").die("click");
// div must have a tabindex to be focusable
- jQuery("#nothiddendiv div").attr("tabindex", "0")[0].focus();
-
- jQuery("#nothiddendiv div").live("blur", function(){
- ok( true, "Live div trigger blur." );
- });
-
- jQuery("#nothiddendiv div").trigger("blur");
-
- jQuery("#nothiddendiv div").die("blur");
+ jQuery("#nothiddendiv div")
+ .attr("tabindex", "0")
+ .live("blur", function(){
+ ok( true, "Live div trigger blur." );
+ })
+ .focus()
+ .trigger("blur")
+ .die("blur");
});
test("die all bound events", function(){