diff options
author | John Resig <jeresig@gmail.com> | 2007-01-22 05:00:02 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-22 05:00:02 +0000 |
commit | 23220321d1c937a69b7c2a51766ce8940724e7bf (patch) | |
tree | a2cab61d162881ed179dbf28f0048d26a3591e96 | |
parent | 31d65e905237376161b8309411296c6ee72ee100 (diff) | |
download | jquery-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.js | 3 |
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) { |