I am facing problems in setting model values containing numeric properties. Here is the example:
This code does not work:
var modelSkeleton = {id: null, name: null};
var model = rx.data.marshal.Json.createModel(modelSkeleton);
var x = {id:22,name:"New name"};
model.set(x);
However if I put quotes on id value, it works:
var modelSkeleton = {id: null, name: null};
var model = rx.data.marshal.Json.createModel(modelSkeleton);
var y = {id:"22",name:"New name"}
model.set(y);
Am I doing some mistake or this is a bug? Any quick solution?