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

Remove deprecated push record #3156

Merged
merged 1 commit into from
Jun 2, 2015
Merged

Remove deprecated push record #3156

merged 1 commit into from
Jun 2, 2015

Conversation

sly7-7
Copy link
Contributor

@sly7-7 sly7-7 commented Jun 2, 2015

Closes #3153, #3152

@bmac
Copy link
Member

bmac commented Jun 2, 2015

Looks good to me. @igorT can you review?

@param {DS.Model} record
*/
pushRecord: function(record) {
Ember.deprecate('Usage of `recordArray.pushRecord` is deprecated, use `recordArray.addObject` instead');
Copy link
Member

Choose a reason for hiding this comment

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

I would still keep the deprecation until 1.0

Copy link
Member

Choose a reason for hiding this comment

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

but i bet this breaks with references refactor. Should call this.pushObject instead of on the content

Copy link
Member

Choose a reason for hiding this comment

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

Actually nm, many arrays are not record arrays anymore, so we can remove this

igorT added a commit that referenced this pull request Jun 2, 2015
@igorT igorT merged commit 4a52995 into emberjs:master Jun 2, 2015
@sly7-7 sly7-7 deleted the remove-deprecated-pushRecord branch June 2, 2015 21:13
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.

RecordArray#addRecord is unused
3 participants