Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Listen for change on model List aliased to controls options object

$
0
0

For the control to listen to events using the "{property} change" syntax, property must be defined on this.options before the controller's init() gets called.
Aren't I doing this by passing an options object when instantiating the control? new someControl( '.domEl', { data: data } ); 


Edit: Oops -- apparently the parent's setup() is responsible for setting up the event bindings for "{property} change" callbacks, not init() as I thought above.
So we think this won't work?

Viewing all articles
Browse latest Browse all 3491

Trending Articles