Side navigation
#8790 closed enhancement (fixed)
Opened April 06, 2011 07:47PM UTC
Closed April 12, 2011 06:59PM UTC
Optimize non-attached events such as data events
Reported by: | dmethvin | Owned by: | dmethvin |
---|---|---|---|
Priority: | blocker | Milestone: | 1.6 |
Component: | event | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently when an event is triggered we always bubble it up the tree to the document/window even if we have never bound an event for it. For the case where we know it's not a native event (and thus cannot/should-not have inline handlers, jQuery.event.trigger should check bail out immediately. The easiest way to do this is probably an event name whitelist for now.
During the event rewrite I looked into keeping a count of *active* event attaches (rather than just non-virgin event names) but it was just too unreliable even after accounting for cloneCopyEvent etc. Counts may become impossible anyway if we start attaching data directly to elements and let them clean up after themselves.
Attachments (0)
Change History (4)
Changed April 06, 2011 07:48PM UTC by comment:1
component: | unfiled → event |
---|---|
milestone: | 1.next → 1.6 |
owner: | → dmethvin |
priority: | undecided → blocker |
status: | new → assigned |
Changed April 06, 2011 07:48PM UTC by comment:2
type: | bug → enhancement |
---|
Changed April 12, 2011 06:55PM UTC by comment:3
Pull request from Dave: https://github.com/jquery/jquery/pull/312
Changed April 12, 2011 06:59PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | assigned → closed |
Landed.