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

[CHORE] remove all usage of Ember.copy #5436

Merged
merged 1 commit into from Apr 16, 2018

Conversation

runspired
Copy link
Contributor

Adds a test utility for deepCopy where we needed it, uses Object.assign everywhere else.

@runspired runspired requested a review from rwjblue April 16, 2018 20:32
@@ -636,7 +632,7 @@ export default class InternalModel {
changedKeys = this._changedKeys(data.attributes);
}

emberAssign(this._data, data.attributes);
Object.assign(this._data, data.attributes);
Copy link
Member

@rwjblue rwjblue Apr 16, 2018

Choose a reason for hiding this comment

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

Can't rely on Object.assign. Use Ember.assign instead (IE11 does not have Object.assign)...

The prior code supported falling back to Ember.merge (supporting Ember < 2.4 IIRC) which we shouldn't need to do any longer....

package.json Outdated
@@ -96,7 +96,7 @@
"ember-publisher": "0.0.7",
"ember-qunit-assert-helpers": "^0.2.1",
"ember-resolver": "^4.1.0",
"ember-source": "~3.0.0",
"ember-source": "https://s3.amazonaws.com/builds.emberjs.com/release/shas/50db6dc8001c127e5aeb2d6ddbacf9f9205d1d7b.tgz",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

o.OI think I have an uncleaned up ember-try state

fix package.json

support IE11
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

LGTM, we should cherry-pick to beta though...

@runspired runspired merged commit ca0771c into emberjs:master Apr 16, 2018
@runspired runspired deleted the remove-copy-usage branch April 16, 2018 23:28
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.

None yet

2 participants