Skip to content
Myr

Added docs for Server#mounted()

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 50e6d80 · Browse files · 1 file+22 added−0 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+22 added−0 removed

  • other:+22 added−0 removed

1 file+22 added−0 removed

modified:lib/express/server.js+22 added
116 unmodified lines
117118 return this;119};120121/**122 * Assign a callback `fn` which is called123 * when this `Server` is passed to `Server#use()`.124 *125 * Examples:126 *127 * var app = express.createServer(),128 * blog = express.createServer();129 *130 * blog.mounted(function(parent){131 * // parent is app132 * // "this" is blog133 * });134 *135 * app.use(blog);136 *137 * @param {Function} fn138 * @return {Server} for chaining139 * @api public140 */141142Server.prototype.mounted = function(fn){143 this.__mounted = fn;144 return this;145};146147/**148 * Register the given view helpers `obj`. This method
128 unmodified lines