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

[DOC] Make model.unloadRecord public #4765

Merged
merged 2 commits into from
Jan 24, 2017
Merged

Conversation

knownasilya
Copy link
Contributor

store.unloadRecord says that it's there for symmetry, meaning the model should have a similar public method.

cc @bmac

`store.unloadRecord` says that it's there for symmetry, meaning the model should have a similar public method.
@@ -587,8 +587,9 @@ const Model = Ember.Object.extend(Ember.Evented, {
},

/**
Unloads the record from the store. Only non-dirty records can be unloaded.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove the second sentence and add "This will cause the record to be destroyed and freed up for garbage collection.".

@knownasilya
Copy link
Contributor Author

Should I update that on the store as well?

knownasilya added a commit to knownasilya/data that referenced this pull request Jan 24, 2017
@bmac bmac merged commit 693a254 into emberjs:master Jan 24, 2017
@bmac
Copy link
Member

bmac commented Jan 24, 2017

Thanks @knownasilya

@knownasilya knownasilya deleted the patch-3 branch January 24, 2017 16:48
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

Successfully merging this pull request may close these issues.

2 participants