Closed sobrinho closed 8 years ago
x = new Fluxo.ObjectStore; x.reset({name: "John"});
This throws an exception because Fluxo.ObjectStore#getDefaults returns undefined when the store do not have any attribute contract specified.
Fluxo.ObjectStore#getDefaults
undefined
Since reset tries to manipulate the getDefaults result, expecting an object, the exception occurs.
getDefaults
Fixed by 7f02b901ed6f9673a89e0fbfdab141d65fb2d21d
This throws an exception because
Fluxo.ObjectStore#getDefaults
returnsundefined
when the store do not have any attribute contract specified.Since reset tries to manipulate the
getDefaults
result, expecting an object, the exception occurs.