Skip to content

Commit

Permalink
Merge pull request #537 from graingert/patch-1
Browse files Browse the repository at this point in the history
pass `this` to setup. Fixes #536
  • Loading branch information
SpaceK33z authored Aug 21, 2016
2 parents 2f02d0c + ddb2b1f commit 87ddebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ function Server(compiler, options) {

setup: function() {
if(typeof options.setup === "function")
options.setup(app);
}
options.setup(app, this);
}.bind(this)
};

var defaultFeatures = ["setup", "headers", "middleware"];
Expand Down

0 comments on commit 87ddebd

Please sign in to comment.