You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that when using ko.mapping for a single object the mapping is retained for later use:
varmapping={id: {create: function(o){return'ID#'+o;}},};vardatum={id: 500};vardatumVm=ko.mapping.fromJS(datum,mapping);// ko.mapping.isMapped(datumVm) is defined
However, when using ko.mapping to map an array, the mapping isn't saved which prevents hiding of added values:
varmapping={id: {create: function(o){return'ID#'+o;}},};vardata=[{id: 500},{id:499}];vardataVm=ko.mapping.fromJS(data,mapping);// ko.mapping.isMapped(dataVm) is NOT defined
The problem is that when using ko.mapping for a single object the mapping is retained for later use:
However, when using ko.mapping to map an array, the mapping isn't saved which prevents hiding of added values:
Here is a fiddle demonstrating the issue: http://jsfiddle.net/vkd3nefa/1/
The text was updated successfully, but these errors were encountered: