Bug Tracker

Changes between Initial Version and Version 1 of Ticket #9393, comment 11


Ignore:
Timestamp:
Jun 5, 2011, 10:48:00 AM (12 years ago)
Author:
rpflorence
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9393, comment 11

    initial v1  
    1 Not sure if these even needs to be addressed, possibly only documented, but some might expect `trigger` to work on events added this way, but trigger doesn't really work with event delegation.  Could cause some confusion that trigger works with `el.on('click', fn)` but not with `el.on('click', 'li > a', fn)`.
     1Not sure if this even needs to be addressed, possibly only documented, but some might expect `trigger` to work on events added this way, but trigger doesn't really work with event delegation.  Could cause some confusion that trigger works with `el.on('click', fn)` but not with `el.on('click', 'li > a', fn)`.
    22
    33MooTools delegates by parsing the event name with a CSS style pseudo selector.  So something like el.on('click:relay(li > a)', fn).