Open luiscaiano opened 10 years ago
almost forgot,
ko.observableArray.fn.pushAll = function (valuesToPush) {
var underlyingArray = this();
this.valueWillMutate();
ko.utils.arrayPushAll(underlyingArray, valuesToPush);
this.valueHasMutated();
return this;
};
is it any problem to add a new feature to the array viewmodel ? in my code i added "pushAllFromModel" , right next to result.pushFromModel defenition, it seems to work fine, but them , i don't know all the inners of the lib. Can you add/comment about this ? if there is any issue/inpact , i would like to know.