Skip to content
Myr

Fixed hook()

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

authored by visionmedia · committed by visionmedia · parent 7e3c60b · Browse files · 1 file+9 added−4 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−4 removed

  • other:+9 added−4 removed

1 file+9 added−4 removed

modified:lib/express.core.js+9 added-4 removed
40 unmodified lines
41 42 function (request, response) {43 Express.response.cookie = request.cookie = Express.parseCookie(request.headers['Cookie'])44 }45 ],46 47 response : [48 function() {49 50 }51 ]52 },53 54 hook : function(name) {49 for (var name in this.hookCallbacks)50 if (this.hookCallbacks.hasOwnProperty(name))51 for (i = 0, len = this.hookCallbacks[name].length; i < len; ++i)52 this.hookCallbacks[name][i].apply(this, this.argsArray(arguments, 1))55 if (this.hookCallbacks[name])56 for (i = 0, len = this.hookCallbacks[name].length; i < len; ++i)57 this.hookCallbacks[name][i].apply(this, this.argsArray(arguments, 1))58 },59 60 /**61 * Start express, binding to _port_.
465 unmodified lines