aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-22 05:00:02 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-22 05:00:02 +0000
commit23220321d1c937a69b7c2a51766ce8940724e7bf (patch)
treea2cab61d162881ed179dbf28f0048d26a3591e96
parent31d65e905237376161b8309411296c6ee72ee100 (diff)
downloadjquery-23220321d1c937a69b7c2a51766ce8940724e7bf.tar.gz
jquery-23220321d1c937a69b7c2a51766ce8940724e7bf.zip
You had to have an event bound in order to trigger an event - which is not necessarily the case.
-rw-r--r--src/event/event.js3
1 files changed, 2 insertions, 1 deletions
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) {