You had to have an event bound in order to trigger an event - which is not necessaril...
authorJohn Resig <jeresig@gmail.com>
Mon, 22 Jan 2007 05:00:02 +0000 (05:00 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 22 Jan 2007 05:00:02 +0000 (05:00 +0000)
src/event/event.js

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