-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
@@ -636,7 +632,7 @@ export default class InternalModel { | |||
changedKeys = this._changedKeys(data.attributes); | |||
} | |||
|
|||
emberAssign(this._data, data.attributes); | |||
Object.assign(this._data, data.attributes); |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
51ad4f5
to
23a87e8
Compare
There was a problem hiding this 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...
Adds a test utility for
deepCopy
where we needed it, usesObject.assign
everywhere else.