]> source.dussan.org Git - jquery.git/commitdiff
The triggered flag was being set too early, which was preventing bubbling form workin...
authorJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:24 +0000 (20:43 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:24 +0000 (20:43 +0000)
native event existed.

src/event.js

index 50973024f5ac266baada592acdabbf300997a05a..da03813b97ccf3b5dda4bee6b5fa5b4d6a23ad8a 100644 (file)
@@ -229,13 +229,13 @@ jQuery.event = {
                        } catch (e) {}
                }
 
+               this.triggered = false;
+
                if ( !event.isPropagationStopped() ) {
                        var parent = elem.parentNode || elem.ownerDocument;
                        if ( parent )
                                jQuery.event.trigger(event, data, parent, true);
                }
-
-               this.triggered = false;
        },
 
        handle: function(event) {