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

Shim backburner join until we are sure Ember has it #2608

Merged
merged 1 commit into from
Dec 18, 2014

Conversation

igorT
Copy link
Member

@igorT igorT commented Dec 18, 2014

method = target[method];
}

return method.apply(target, slice.call(arguments, 2));
Copy link
Member

Choose a reason for hiding this comment

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

are u slicing args in a hot-path?

Copy link
Member

Choose a reason for hiding this comment

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

we should also be sure not to slice beyond arguments.length - 1

Copy link
Member Author

Choose a reason for hiding this comment

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

I literally copied code from backburner. Please raise the issue there :)

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

Choose a reason for hiding this comment

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

this should be fixed before merging here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, how should I fix it? Just put a guard for argument.length? Wanna merge this asap to fix the build

Copy link
Member

Choose a reason for hiding this comment

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

trying to get BB npm to install, i have something that should work but i need to run tests

Copy link
Member Author

Choose a reason for hiding this comment

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

❤️

Copy link
Member

Choose a reason for hiding this comment

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

BackburnerJS/backburner.js#124 could use feedback

@igorT igorT force-pushed the backburner-join-shim branch 2 times, most recently from 7538aea to 0da423a Compare December 18, 2014 03:39
@igorT igorT force-pushed the backburner-join-shim branch from 0da423a to fdf1f0a Compare December 18, 2014 03:42
igorT added a commit that referenced this pull request Dec 18, 2014
Shim backburner join until we are sure Ember has it
@igorT igorT merged commit f88fc5d into master Dec 18, 2014
@igorT igorT deleted the backburner-join-shim branch December 18, 2014 03:53
HeroicEric added a commit to HeroicEric/data that referenced this pull request Feb 19, 2016
This shim was added a long while back when we could not rely on the
version of Backburner that Ember was using to have the `join()`
function.

Any currently supported version of Ember (2.x) should have this now.

Similarly, any currently supported (2.x) version of Ember also has
`Ember._Backburner` available.

Shim was added in:
emberjs#2608

`Backburner.join()` was added in:
BackburnerJS/backburner.js#119
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