knockout.viewmodel icon indicating copy to clipboard operation
knockout.viewmodel copied to clipboard

Update knockout.viewmodel.js

Open armindojcunha opened this issue 9 years ago • 0 comments

This was a problem that I detect on the display of the information when was updating recursive the viewmodel from the new model. Because when we remove a element:

viewModelObj.splice(q, 1);

If we use the slice over the object and not the function we cannot guaranty the order so we don't display the correct information.

So simply change to viewModelObj().splice(q, 1); will fix this problem.

armindojcunha avatar May 17 '16 10:05 armindojcunha