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

Ensure Collection#get does not return a false negative during the change:attr event #2602

Merged
merged 1 commit into from
Jun 10, 2013

Conversation

caseywebdev
Copy link
Collaborator

As explained by @jrreed in #2177, it's possible for collection.get(model) to incorrectly return undefined while the model's id is being set (see added test). I'm fairly certain this won't break any existing code, but please take a look before I merge.

@braddunbar
Copy link
Collaborator

👍 for explicitness.

caseywebdev added a commit that referenced this pull request Jun 10, 2013
Ensure Collection#get does not return a false negative during the change:attr event
@caseywebdev caseywebdev merged commit 4149557 into jashkenas:master Jun 10, 2013
@caseywebdev caseywebdev deleted the fallback-get branch June 10, 2013 16:15
@jrreed
Copy link

jrreed commented Jun 10, 2013

Awesome, thanks @caseywebdev!

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

Successfully merging this pull request may close these issues.

3 participants