-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[FEATURE ember-metal-ember-assign] Introduce Ember.assign() #12303
Conversation
@@ -321,6 +322,7 @@ Ember.isEmpty = isEmpty; | |||
Ember.isBlank = isBlank; | |||
Ember.isPresent = isPresent; | |||
|
|||
Ember.assign = assign; |
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.
I think we will need to feature flag the public API change.
Could you:
|
Another point made in #12320 (that I agree with) is that we should use |
@tricknotes - I moved the various comments/todo items into a checklist in the PR description (so you can check them off as you go). |
Sorry for my late :< I'll continue to work in this weekend. |
if there is a well known and widely use of a polyfill, why writing a code for it and not using it? |
44941c9
to
b8610b2
Compare
I think |
@rwjblue |
@tricknotes - Looks great, can you squash commits and make the new commit's title |
And deprecate `Ember.merge`.
b8610b2
to
53e0ed9
Compare
Thanks, @rwjblue . |
Awesome work as usual, thank you @tricknotes! |
[FEATURE ember-metal-ember-assign] Introduce Ember.assign()
@tricknotes @rwjblue i think if There are versions of chrome that support |
We are not intending to make a full fidelity polyfill here, just the behaviors that we need. If you need/want a full polyfill you should include a full fidelity version (like the one you linked) and that will be used instead (since it actually sets Object.assign). |
@rwjblue but three things:
i know it sounds picky and very edge case, but as web developers we all fight very edge cases everyday. and many don't know enough |
fix deprecation Ember.merge for 2.5.0 DEPRECATION: Usage of `Ember.merge` is deprecated, use `Ember.assign` instead. [deprecation id: ember-metal.merge] More info: emberjs/ember.js#12303 Setup: ``` Ember : 2.5.0-beta.3 Ember Data : 2.5.0-beta.3 jQuery : 2.2.1 Ember Simple Auth : 1.1.0-beta.3 ```
Ember.assign()
is discussed in #11978 .Ember.merge
when the flag is enabledember-metal/assign
(doesn't need to be complicated, but I noticed no tests were tweaked/changed formerge
orassign
and figured we probably want some to exist).Object.assign
if it exists (making ourEmber.assign
a straight up polyfill).