I have a custom binding that creates event handlers on init. In those event handlers, I call a function of my view model that updates one of my view model property (which is an observable array).
However the DOM elements that are bound to this property are not updated.
Furhermore, if I change the view model property by calling directly a method of the view model, the DOM elements are updated correclty. Also, if the property was changed using the first method prior, now the view model property contains all the rigth information.
Sorry if this is not clear, here is fiddle to test it: http://jsfiddle.net/8RTjN/67/
When running it, select a row (the viewmodel is updated but bindings are not), then click the add button (which modifies directly the viewmodel property) and now the bindings are updated correctly.
So: What am I doing wrong?
When you push to
selectedRequestsyou currently haveYou do not need the ()