New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #375 - toJSON should include IDs of unregistered models #376

Merged
merged 4 commits into from Oct 29, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Fixup for numerical IDs

  • Loading branch information...
philfreo committed Jul 10, 2013
commit 76bf29629bb421040d439418a56258f70fa5ee9b
View
@@ -1486,7 +1486,7 @@
}
else if ( rel instanceof Backbone.HasOne ) {
value = value || rel.keyId;
if (!value && _.isString(rel.keyContents)) value = rel.keyContents;
if (!value && !_.isObject(rel.keyContents)) value = rel.keyContents;
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.