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

Refactor Errors#errorsByAttributeName to not use Ember.reduceComputed #3329

Merged
merged 1 commit into from
Jun 14, 2015
Merged

Refactor Errors#errorsByAttributeName to not use Ember.reduceComputed #3329

merged 1 commit into from
Jun 14, 2015

Conversation

pangratz
Copy link
Member

Ember.reduceComputed has been deprecated in emberjs/ember.js#11403. Once this is merged, #3327 can be closed.

@@ -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);
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Lemme check

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

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...

Copy link
Member Author

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?

Copy link
Member

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.

Copy link
Member Author

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 ... 😕

Copy link
Member Author

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

igorT added a commit that referenced this pull request Jun 14, 2015
Refactor `Errors#errorsByAttributeName` to not use Ember.reduceComputed
@igorT igorT merged commit c093d72 into emberjs:master Jun 14, 2015
@pangratz pangratz deleted the remove_reduce_computed_from_model branch June 14, 2015 14:08
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.

4 participants