We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Task functions medata are lost when using fn.bind as in:
fn.bind
ConfigRegistry.prototype.set = function set(name, fn) { // The `DefaultRegistry` uses `this._tasks` for storage. var task = this._tasks[name] = fn.bind(this.config); return task; };
Updating the example with the following would preserve metadata:
ConfigRegistry.prototype.set = function set(name, fn) { // The `DefaultRegistry` uses `this._tasks` for storage. var task = this._tasks[name] = Object.assign(fn.bind(this.config), fn); return task; };
It's not a big deal but it would definitely save some times to devs wondering why metadata aren't displaying suddenly :).
The text was updated successfully, but these errors were encountered:
Good catch! Would you like to send a PR for this, I can get it merged and released on the website.
Sorry, something went wrong.
PR #2565 sent!
9877de0
Thanks again!
No branches or pull requests
Task functions medata are lost when using
fn.bind
as in:Updating the example with the following would preserve metadata:
It's not a big deal but it would definitely save some times to devs wondering why metadata aren't displaying suddenly :).
The text was updated successfully, but these errors were encountered: