Skip to content
Myr

use() of the same plugin several time will always use latest options. Closes #176

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

authored by visionmedia · committed by visionmedia · parent 8c1bcc4 · Browse files · 4 files+14 added−1 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+14 added−1 removed

  • tests:+1 added−0 removed
  • other:+13 added−1 removed

4 files+14 added−1 removed

modified:examples/chat/app.js+1 added
modified:lib/express/dsl.js+4 added
67 unmodified lines
68 */6970exports.run = function() {71 configure(Express.environment = process.ENV.EXPRESS_ENV || 'development')72 $(Express.plugins).each(function(plugin){73 if ('init' in plugin.klass)74 plugin.klass.init(plugin.options)75 })76 Express.server.run.apply(Express.server, arguments)77}7879/**
43 unmodified lines
modified:lib/express/plugin.js+8 added-1 removed
modified:spec/node.js+1 added
62 unmodified lines
63 default: 64 run([process.ARGV[2]])65}6667Express.environment = 'test'68JSpec.run({ reporter: JSpec.reporters.Terminal, failuresOnly: true }).report()