Open prg opened 10 years ago
With an object like this:
var obj = { id: 'a1', foo: { id: 'b2', bar: 'baz' } }
instantiation of foo seems to fail, it's simply omitted and the top-level Model doesn't have the expected attribute (e.g. model.get('foo') returns undefined).
foo
model.get('foo')
undefined
As far as I can tell, it's this line's fault.
+1
With an object like this:
instantiation of
foo
seems to fail, it's simply omitted and the top-level Model doesn't have the expected attribute (e.g.model.get('foo')
returnsundefined
).As far as I can tell, it's this line's fault.