You had to have an event bound in order to trigger an event - which is not necessarily the case.

This commit is contained in:
John Resig 2007-01-22 05:00:02 +00:00
parent 31d65e9052
commit 23220321d1

View file

@ -91,7 +91,8 @@ jQuery.event = {
this.triggered = true;
element[ type ]();
}
}
} else if ( jQuery.isFunction( element[ type ] ) )
element[ type ]();
},
handle: function(event) {