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

Add Q.ncall, like nfcall but accepts a thisArg #53

Merged
merged 1 commit into from
Aug 24, 2015
Merged

Add Q.ncall, like nfcall but accepts a thisArg #53

merged 1 commit into from
Aug 24, 2015

Conversation

kylehg
Copy link
Contributor

@kylehg kylehg commented Aug 24, 2015

Hello @nicks,

Please review the following commits I made in branch 'kyle-call'.

6598ada (2015-08-24 13:32:56 -0700)
Add Q.call, like nfcall but accepts a thisArg

R=@nicks

MANUAL TESTING=not manually tested

@nicks
Copy link
Contributor

nicks commented Aug 24, 2015

hmmm...i think the idiomatic naming convention would be ncall?

see nbind and nfbind
https://github.com/kriskowal/q/wiki/API-Reference#qnfbindnodefunc-args

@kylehg
Copy link
Contributor Author

kylehg commented Aug 24, 2015

Ah makes sense, fixed!

@@ -42,7 +42,7 @@ if (typeof process !== 'undefined') {
* @param {Object|undefined} scope
* @param {Array} args
*/
function nextTickCallback (defer, callback, scope, args) {
function nextTickCallback(defer, callback, scope, args) {
Copy link
Contributor

Choose a reason for hiding this comment

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

O.o

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the ocd, I thought our style-guide only puts a space if it's an anonymous function, but now I can't find anything like that...

@nicks
Copy link
Contributor

nicks commented Aug 24, 2015

lg

can you also update the README?

@kylehg kylehg changed the title Add Q.call, like nfcall but accepts a thisArg Add Q.ncall, like nfcall but accepts a thisArg Aug 24, 2015
kylehg added a commit that referenced this pull request Aug 24, 2015
Add Q.ncall, like nfcall but accepts a thisArg
@kylehg kylehg merged commit 5773bcb into master Aug 24, 2015
@kylehg kylehg deleted the kyle-call branch August 24, 2015 21:47
@kylehg
Copy link
Contributor Author

kylehg commented Aug 24, 2015

Added a new release, ready for you to npm publish whenever you get a chance.

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