-
-
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
Cleanup array mixin #16718
Cleanup array mixin #16718
Conversation
@@ -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. |
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.
reducerProperty
seems not used anywhere and remains from SproutCore days I think
@mmun maybe you can review this ? |
}, this); | ||
|
||
return ret; | ||
return this.map(item => tryInvoke(item, methodName, args)); |
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 change breaks the API of invoke
, which now no longer returns an Ember.A
when prototype extensions are disabled.
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.
is wrapping it with Ember.A
ok ? or revert will help ?
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'm going to revert just this part, and add some tests
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.
No description provided.