Permalink
Browse files

Fix leaks in examples

  • Loading branch information...
1 parent 028e207 commit 70871a46247b745127c190bcdd2dd187e047b9d3 @camshaft committed Dec 11, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 examples/express/app.js
  2. +1 −1 examples/express/stack.js
  3. +1 −1 examples/simple/app.js
  4. +1 −1 examples/simple/stack.js
View
2 examples/express/app.js
@@ -2,7 +2,7 @@
var express = require("express")
, stack = require("./stack");
-app = express();
+var app = express();
// Initialize the pack
var pack = stack({
View
2 examples/express/stack.js
@@ -1,6 +1,6 @@
var stack = require("../../")
- express = require("express");
+ , express = require("express");
module.exports = function(config) {
if (!config) config = {};
View
2 examples/simple/app.js
@@ -2,7 +2,7 @@
var connect = require("connect")
, pack = require("./stack")();
-app = connect();
+var app = connect();
// Insert some custom middleware
pack.useBefore('favicon', connect.logger("dev"));
View
2 examples/simple/stack.js
@@ -1,6 +1,6 @@
var stack = require("../../")
- connect = require("connect");
+ , connect = require("connect");
module.exports = function(config) {
if (!config) config = {};

0 comments on commit 70871a4

Please sign in to comment.