Additionally, to stop an event propagating once it has be intercepted somewhere you have to use $evt -> stopPropagation(); if an event is meant to be intercepted by one DOMElement only, it makes sense to trigger that event with Xms\Core\XmsEvent::BUBBLE_CANCEL which so it won't propagate in DOM at all
For the example document above, h and c elements respond to someEvent; if we trigger someEvent on f with default bubbling type, it will go to c; if we use BUBBLE_CHILDS the event is beign intercepted by h.
If we bind f to someOtherEvent and trigger it on f directly, it won't be propagated anywhere if:
- is triggered with Xms\Core\XmsEvent::BUBBLE_CANCEL or
- inside the event callback we use $evt -> stopPropagation()