Skip to content
Myr

Revert "Clone / reverse plugins ONCE"

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

shit, was causing some bugs, will figure that out first This reverts commit 115765e1ee0f61b9a8bc01f5ec74f69a59524ae3.

authored by visionmedia · committed by visionmedia · parent 115765e · Browse files · 1 file+1 added−2 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+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:lib/express/request.js+1 added-2 removed
58 unmodified lines
59 this.params.post = this.params.post || {}60 this.plugins = Express.plugins.map(function(plugin){61 return new plugin.klass(plugin.options) 62 })63 this.reversedPlugins = this.plugins.splice(0).reverse() 63 },64 65 /**66 * Set response header _key_ and _val_ or get
256 unmodified lines
323 var self = this,324 complete = 0,325 total = this.plugins.length,326 plugins = reverse328 ? self.reversedPlugins327 ? self.plugins.reverse()328 : self.plugins329 ;(function next(err) {330 if (err || complete === total)331 callback(err)
106 unmodified lines