Closed 0xgeert closed 10 years ago
A Mixin called SimpleChangeControllerViewMixin implementing the following
SimpleChangeControllerViewMixin
With this mixin the Controller-view <--> Store communication is abstracted away as such: *
getStoreState
stores
_onChange
getInitialState
this.stores
setState(getStoreState())
A Mixin called
SimpleChangeControllerViewMixin
implementing the followingWith this mixin the Controller-view <--> Store communication is abstracted away as such: *
getStoreState
is needed on the Controller viewstores
(single obj or array) is needed on the Controller view_onChange
is needed on the Controller view *getStoreState
is called ongetInitialState
getStoreState
may contain properties from every store inthis.stores
this.stores
setState(getStoreState())
*