Skip to content

Instantly share code, notes, and snippets.

@acnalesso
Created December 23, 2014 11:46
Show Gist options
  • Save acnalesso/dfb9702b3b077f5bf85a to your computer and use it in GitHub Desktop.
Save acnalesso/dfb9702b3b077f5bf85a to your computer and use it in GitHub Desktop.
Queue#invoke
invoke: function(target, method, args, _, _errorRecordedForStack) {
if (args && args.length > 0) {
method.apply(target, args);
} else {
method.call(target);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment