Multiple owners / Receiving events from multiple ancestors.

edited November 2014 in Enyo 2.4
For instance, I've got a component that is responsible for laying out and displaying multiple pages on the screen, affecting their visibility etc. Lets call it the PageManager.

Each page also has it's own controller, lets call them PageController.
The PageControllers are *not* children of the PageManager, but they do pass their PageView component into the layout.

I would like the PageView to be able to receive waterfalled events from both it's PageController and the PageManager.

It seems like this would require the PageView to be owned by both the PageController and the PageManager. How do I achieve this?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!