Skip to content
Myr

Removed app.mounted(callback)

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 1334a74 · Browse files · 1 file+0 added−26 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+0 added−26 removed

  • other:+0 added−26 removed

1 file+0 added−26 removed

modified:lib/application.js-26 removed
205 unmodified lines
206 return this;207};208209/**210 * Assign a callback `fn` which is called211 * when this `Server` is passed to `Server#use()`.212 *213 * Examples:214 *215 * var app = express.createServer()216 * , blog = express.createServer();217 *218 * blog.mounted(function(parent){219 * // parent is app220 * // "this" is blog221 * });222 *223 * app.use(blog);224 *225 * @param {Function} fn226 * @return {app} for chaining227 * @api public228 */229230app.mounted = function(fn){231 this.__mounted = fn;232 return this;233};234235/**210 * Register the given template engine callback `fn`211 * as `ext`. For example we may wish to map ".html"212 * files to ejs rather than using the ".ejs" extension.213 *
350 unmodified lines