pandell / Spagety

Other
0 stars 0 forks source link

Late event-binding #7

Open cjasinsk opened 10 years ago

cjasinsk commented 10 years ago

Currently the element the page data-binding is on, is in a different context than its child nodes. The child context is the context that the viewModel is bound to, not the element that the page data-binding is on.

The viewModel should be able to control its own events (everything after beforeSourceLoad and onSourceError), to make it a complete standalone component - instead of having the parent context create appropriate event handlers for it.