Example of Bubble/Waterfall Down or External Call

Is there an example of Bubble/Waterfall a method somewhere? I am trying to work out how to call methods external to enyo and I can't seem to work this out.

Comments

  • Well, bubble/bubbleUp/waterfall/waterfallDown are only going to be caught by enyo.dispatcher, so I'm not sure if it's going to do what you want, but an example:

    this.bubble("onMyEvent", {});

    This will cause the onMyEvent to bubble up through the Enyo hierarchy chain until it gets handled.

    The difference between bubble and bubbleUp is where the event starts propagating. The latter triggers the event at one ownership hierarchy level higher.
Sign In or Register to comment.