Skip to content
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

isNew is always false #2

Open
Cavka opened this issue Mar 5, 2013 · 1 comment
Open

isNew is always false #2

Cavka opened this issue Mar 5, 2013 · 1 comment

Comments

@Cavka
Copy link

Cavka commented Mar 5, 2013

Backbone is always doing a PUT on models with a composite key, no matter if they are new or not. I'm assuming because of the generated ID the isNew property is always set to false.

@caseywebdev
Copy link
Owner

Can you provide an example?

(new Model).isNew().should.be.ok

is passing for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants