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 593634f · Browse files · 4 files+13 added−12 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+13 added−12 removed

  • other:+13 added−12 removed

4 files+13 added−12 removed

modified:lib/express/plugins/hooks.js+2 added-2 removed
modified:lib/express/plugins/session.js+1 added-1 removed
129 unmodified lines
130 131 reap: function(ms) {132 var self = this,133 threshold = Number(new Date(Number(new Date) - ms))134 $(this.store).each(function(session, sid){134 this.store.each(function(session, sid){135 if (session.lastAccess < threshold)136 self.destroy(sid)137 })138 }
67 unmodified lines
modified:lib/express/plugins.js+2 added-1 removed
modified:lib/express/request.js+8 added-8 removed
71 unmodified lines
72 this.params = this.params || {}73 this.params.path = {}74 this.params.get = this.url.query ? queryString.parseQuery(this.url.query) : {}75 this.params.post = this.params.post || {}76 this.plugins = $(Express.plugins).map(function(plugin){76 this.plugins = Express.plugins.map(function(plugin){77 return new plugin.klass(plugin.options) 78 })79 },80
51 unmodified lines
132 */133134 accepts: function() {135 var accept = this.header('accept')136 return accept ? 137 $(arguments).any(function(path){138 var type = mime.type(path)139 return accept.indexOf(type) !== -1 ||140 accept.indexOf(type.split('/')[0]+'/*') !== -1141 }) :142 true136 return accept 137 ? arguments.any(function(path){138 var type = mime.type(path)139 return accept.indexOf(type) !== -1 ||140 accept.indexOf(type.split('/')[0]+'/*') !== -1141 })142 : true143 },144145 /**146 * Set response status to _code_.
129 unmodified lines