From 23220321d1c937a69b7c2a51766ce8940724e7bf Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 22 Jan 2007 05:00:02 +0000 Subject: [PATCH 1/1] 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 a948bfc..565b915 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) { -- 1.7.10.4