-
-
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
Refactor Errors#errorsByAttributeName
to not use Ember.reduceComputed
#3329
Refactor Errors#errorsByAttributeName
to not use Ember.reduceComputed
#3329
Conversation
@@ -297,6 +284,7 @@ export default Ember.Object.extend(Ember.Enumerable, Ember.Evented, { | |||
|
|||
var content = get(this, 'content').rejectBy('attribute', attribute); | |||
get(this, 'content').setObjects(content); | |||
get(this, 'errorsByAttributeName').remove(attribute); |
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.
isn't map.remove also deprecated?
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.
Lemme check
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.
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.
Your're absolutely right, nice catch! Will update to use delete
...
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.
So this would have been caught by Travis we would need to run the tests using a debug build of Ember, right?
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.
c, it seems like we should do that.
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.
Hmm, as far as I can see the debug builds are already used ... 😕
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.
This is because currently the RAISE_ON_DEPRECATION
env is not set to true
, which is tracked in #3233
Refactor `Errors#errorsByAttributeName` to not use Ember.reduceComputed
Ember.reduceComputed
has been deprecated in emberjs/ember.js#11403. Once this is merged, #3327 can be closed.