Skip to content
Myr

Hook docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent c81b5ce · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:lib/express.core.js+9 added-1 removed
49 unmodified lines
50 }51 ]52 },53 54 /**55 * Invoke hook _name_ with _args_.56 *57 * @param {string} name58 * @param {...} args59 * @api public60 */61 54 hook : function(name) {62 hook : function(name, args) {63 if (this.hookCallbacks[name])64 for (i = 0, len = this.hookCallbacks[name].length; i < len; ++i)65 this.hookCallbacks[name][i].apply(this, this.argsArray(arguments, 1))66 },
468 unmodified lines