Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks for this approach Dimitar. However, I don't feel very comfortable firing the event on the parent directly cause that's getting too friendly with the internal workings. Also, would I be wrong to say MooTools doesn't use the DOM event dispatching mechanism, and stores event handlers for each element in the element store?
      singulars
    2. COI don't see a problem with firing the event through the parent listener. To be honest, the mootools core team are the first to admit that the current implementation of event delegation leaves things short of brilliant. I cannot comment on what is forthcoming in the near-ready 1.3 or almost-near-ready mootools 2.0 but you are correct in that events are basically in element storage under events (so you can do `var myEvents = this.retrieve("events");` and get an object with the event name as key, like `myEvents.click` and can explore it further under click.keys to find the stored functions.
      singulars
    3. COI would also say that the native method you have used for dispatching the event is is not cross-browser compliant (fails FF) and this kind thing defeats the purpose of using a framework when you need to cater for every possible way of achieving this for all browser engines... Having said that, if you get anywhere with this, may be worth submitting it on github as a new method of the Event class, like `fireNativeEvent: function(eventType)`. Good luck
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload