Setting {wait: true} causes models to be created incorrectly #28

Closed
jamescasbon opened this Issue Apr 3, 2012 · 1 comment

Comments

Projects
None yet
2 participants
n = notebooks.create({title: 'oh hai'}, {wait: true})
n
// n is a Notebook
n.attributes
// returns Notebook
n = notebooks.create({title: 'oh hai'})
n.attributes
// returns Object

In the former case, the model cannot be saved as it causes a stack overflow. The attributes are the model object itself rather than a simple object containing attributes.

Owner

jeromegn commented Jan 14, 2013

Is this still the case? Closing for now, feel free to reopen if the issue is still present.

jeromegn closed this Jan 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment