From 23220321d1c937a69b7c2a51766ce8940724e7bf Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 22 Jan 2007 05:00:02 +0000 Subject: [PATCH] You had to have an event bound in order to trigger an event - which is not necessarily the case. --- src/event/event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event/event.js b/src/event/event.js index a948bfcfd..565b9154c 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -91,7 +91,8 @@ jQuery.event = { this.triggered = true; element[ type ](); } - } + } else if ( jQuery.isFunction( element[ type ] ) ) + element[ type ](); }, handle: function(event) {