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

Cleanup array mixin #16718

Merged
merged 3 commits into from Jun 8, 2018
Merged

Cleanup array mixin #16718

merged 3 commits into from Jun 8, 2018

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Jun 5, 2018

No description provided.

@@ -936,17 +932,16 @@ const ArrayMixin = Mixin.create(Enumerable, {
@method reduce
@param {Function} callback The callback to execute
@param {Object} initialValue Initial value for the reduce
@param {String} reducerProperty internal use only.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reducerProperty seems not used anywhere and remains from SproutCore days I think

@bekzod
Copy link
Contributor Author

bekzod commented Jun 8, 2018

@mmun maybe you can review this ?

@mmun mmun merged commit 1bf1491 into emberjs:master Jun 8, 2018
}, this);

return ret;
return this.map(item => tryInvoke(item, methodName, args));
Copy link
Member

Choose a reason for hiding this comment

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

This change breaks the API of invoke, which now no longer returns an Ember.A when prototype extensions are disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is wrapping it with Ember.A ok ? or revert will help ?

Copy link
Member

Choose a reason for hiding this comment

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

I'm going to revert just this part, and add some tests

Copy link
Member

Choose a reason for hiding this comment

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

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

3 participants