}
preType = type;
- type = (liveMap[ type ] || type) + namespaces;
+
+ if ( type === "focus" || type === "blur" ) {
+ types.push( liveMap[ type ] + namespaces );
+ type = type + namespaces;
+
+ } else {
+ type = (liveMap[ type ] || type) + namespaces;
+ }
if ( name === "live" ) {
// bind live handler
});
test(".live()/.die()", function() {
- expect(65);
+ expect(66);
var submit = 0, div = 0, livea = 0, liveb = 0;
equals( livee, 1, "Click, deep selector." );
jQuery("#nothiddendiv div").die("click");
+
+ jQuery("#nothiddendiv div").live("blur", function(){
+ ok( true, "Live div trigger blur." );
+ });
+
+ jQuery("#nothiddendiv div").trigger("blur");
+
+ jQuery("#nothiddendiv div").die("blur");
});
test("die all bound events", function(){