Skip to content
Myr

Started conversion of js-oo Class -> class.js

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

authored by visionmedia · committed by visionmedia · parent 2208826 · Browse files · 4 files+9 added−5 removed
This commit

State

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

Diff stats

4 files+9 added−5 removed

  • other:+9 added−5 removed

4 files+9 added−5 removed

modified:lib/express/core.js+5 added-5 removed
16 unmodified lines
17global.merge(require('express/dsl'))1819// --- Route2021Route = Class({21Route = new NewClass({22 23 /**24 * Initialize a route with the given _method_,25 * _path_, and callback _fn_.
8 unmodified lines
34 * @param {hash} options35 * @api private36 */37 38 init: function(method, path, fn, options){38 constructor: function(method, path, fn, options){39 this.method = method40 this.originalPath = path41 this.path = this.normalize(path)42 this.fn = fn
40 unmodified lines
83})8485// --- Router8687Router = Class({87Router = new NewClass({88 89 /**90 * Initialize with _request_ and parse url.91 *92 * @param {Request} request93 * @api private94 */95 96 init: function(request) {96 constructor: function(request) {97 this.request = request98 },99 100 /**
71 unmodified lines
172})173174// --- Server175176Server = Class({176Server = new NewClass({177 178 /**179 * Default port number.180 */
166 unmodified lines
added:lib/support/classnot shown

Its text is not shown, added.

modified:lib/express.js+1 added
modified:.gitmodules+3 added
8 unmodified lines
9 url = git://github.com/visionmedia/sass.js.git10[submodule "lib/support/haml"]11 path = lib/support/haml12 url = git://github.com/creationix/haml-js.git13[submodule "lib/support/class"]14 path = lib/support/class15 url = git://github.com/visionmedia/class.js.git