NewClass -> Class, removed js-oo dependency
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by visionmedia · committed by visionmedia · parent ac96b8c · Browse files · 10 files·+14 added−15 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
10 files+14 added−15 removed
- tests:+2 added−2 removed
- other:+12 added−13 removed
Provenance
- Commit
c3b8ba4- Tree
dedca84- Author
visionmedia <tj@vision-media.ca>- Committer
visionmedia <tj@vision-media.ca>- Parent
ac96b8c
10 files changed+14 added−15 removed
modified:lib/express/plugins/cache.js+2 added-2 removed
1 unmodified line2 // Express - Cache - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)3 4 // --- Cache5 6-var Cache = new NewClass({6+var Cache = new Class({7 8 /**9 * Initialize cache with _key_ and _val_.10 */6 unmodified lines17 })18 19 // --- Store20 21-exports.Store = new NewClass({21+exports.Store = new Class({22 23 /**24 * Ensure that the given _key_ is a string.25 * Override in subclass to provide data-store specific functionality.195 unmodified linesmodified:lib/express/plugins/session.js+2 added-2 removed
7 unmodified lines8 var utils = require('express/utils')9 10 // --- Session11 12-var Session = new NewClass({12+var Session = new Class({13 14 /**15 * Initialize session _sid_.16 */15 unmodified lines32 })33 34 // --- Store35 36-exports.Store = new NewClass({36+exports.Store = new Class({37 38 /**39 * Convert to '[NAME Store]'.40 *161 unmodified linesmodified:lib/express/spec/mocks.js+2 added-2 removed
7 unmodified lines89101112121314151627 unmodified lines4445464748484950515283 unmodified lines7 unmodified linesvar utils = require('express/utils')
// --- MockRequest
var MockRequest = new NewClass({var MockRequest = new Class({ /** * Default HTTP version. */27 unmodified lines})
// --- MockResponse
var MockResponse = new NewClass({var MockResponse = new Class({ /** * Store _code_ and _headers_. */83 unmodified linesmodified:lib/express/core.js+3 added-3 removed
16 unmodified lines17 global.merge(require('express/dsl'))18 19 // --- Route20 21-Route = new NewClass({21+Route = new Class({22 23 /**24 * Initialize a route with the given _method_,25 * _path_, and callback _fn_.57 unmodified lines83 })84 85 // --- Router86 87-Router = new NewClass({87+Router = new Class({88 89 /**90 * Initialize with _request_ and parse url.91 *80 unmodified lines172 })173 174 // --- Server175 176-Server = new NewClass({176+Server = new Class({177 178 /**179 * Default port number.180 */166 unmodified linesmodified:lib/express/event.js+1 added-1 removed
12344567821 unmodified lines
// Express - Event - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
exports.Event = new NewClass({exports.Event = new Class({ /** * Initialize with event _name_ and optional _data_. *21 unmodified linesmodified:lib/express/plugin.js+1 added-1 removed
30 unmodified lines31 }32 33 // --- Plugin34 35-exports.Plugin = new NewClass({35+exports.Plugin = new Class({36 37 /**38 * Initialize with _options_.39 *22 unmodified linesmodified:lib/express/request.js+1 added-1 removed
27 unmodified lines28 }29 30 // --- Request31 32-exports.Request = new NewClass({32+exports.Request = new Class({33 34 /**35 * Initialize with node's _request_ and _response_ objects.36 *251 unmodified linesmodified:lib/express/static.js+1 added-1 removed
8 unmodified lines9 fs = require('fs')10 11 // --- File12 13-exports.File = new NewClass({13+exports.File = new Class({14 15 /**16 * Initialize with file _path_.17 *44 unmodified linesdeleted:lib/support/oonot shown
Its text is not shown, deleted.
modified:lib/express.js+1 added-2 removed
1 unmodified line2 require.paths.unshift(__dirname + '/support/ext/lib')3 require.paths.unshift(__dirname + '/support/haml/lib')4 require.paths.unshift(__dirname + '/support/sass/lib')5 require('ext')6-require('support/oo/lib/oo')7-NewClass = require('support/class/lib/class').Class6+Class = require('support/class/lib/class').Class7 require('express/core')