Skip to content
Myr

Removed more Collection usage

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

authored by visionmedia · committed by visionmedia · parent f4a9d7e · Browse files · 5 files+10 added−11 removed
This commit

State

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

Diff stats

5 files+10 added−11 removed

  • other:+10 added−11 removed

5 files+10 added−11 removed

modified:examples/upload/app.js+3 added-4 removed
modified:lib/express/pages/show-exceptions.js+3 added-3 removed
modified:lib/express/plugins/session.js+1 added-1 removed
116 unmodified lines
117 * @api public118 */119 120 length: function() {121 return $(this.store).length()121 return this.store.values.length122 },123 124 /**125 * Reap sessions older than _ms_.
80 unmodified lines
modified:lib/express/dsl.js+1 added-1 removed
78 unmodified lines
79 */8081exports.run = function() {82 configure(Express.environment = process.ENV.EXPRESS_ENV || 'development')83 $(Express.plugins).each(function(plugin){83 Express.plugins.each(function(plugin){84 if ('init' in plugin.klass)85 plugin.klass.init(plugin.options)86 })87 Express.server.run.apply(Express.server, arguments)
46 unmodified lines
modified:lib/express/utils.js+2 added-2 removed
116 unmodified lines
117exports.mergeParam = function(key, val, params) {118 var orig = params,119 keys = key.trim().match(/\w+/g),120 array = /\[\]$/.test(key)121 $(keys).reduce(queryString.parseQuery(key), function(parts, key, i){121 keys.reduce(function(parts, key, i){122 if (i === keys.length - 1)123 if (key in params)124 params[key] instanceof Array ?125 params[key].push(val) :
2 unmodified lines
128 params[key] = array ? [val] : val129 if (!(key in params)) params[key] = {}130 params = params[key]131 return parts[key]132 })132 }, queryString.parseQuery(key))133 return orig134}135136/**
73 unmodified lines