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

[BUGFIX beta] [fixes #11736] ensure array computed macro’s have corre… #11737

Merged
merged 1 commit into from
Jul 14, 2015

Conversation

stefanpenner
Copy link
Member

…ct this

@@ -13,7 +13,7 @@ import { isArray } from 'ember-runtime/utils';

function reduceMacro(dependentKey, callback, initialValue) {
return computed(`${dependentKey}.[]`, function() {
return get(this, dependentKey).reduce(callback, initialValue);
return get(this, dependentKey).reduce(callback.bind(this), initialValue);
Copy link
Member

Choose a reason for hiding this comment

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

:trollface: let the phantomjs trolling begin (Function.prototype.bind is not available).

Copy link
Member Author

Choose a reason for hiding this comment

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

are we not using 2.0? I guess our users may also not be, i'll quickly implement it the lame way.

Copy link
Member Author

Choose a reason for hiding this comment

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

@rwjblue any opposition to me upgrading us to use phantomjs 2.0 ?

rwjblue added a commit that referenced this pull request Jul 14, 2015
[BUGFIX beta] [fixes #11736] ensure array computed macro’s have corre…
@rwjblue rwjblue merged commit 9df93dc into emberjs:master Jul 14, 2015
@rwjblue rwjblue deleted the ac-this branch July 14, 2015 02:39
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.

2 participants