Skip to content

Commit 46267ee

Browse files
committed
properly declare vars to avoid global scope
1 parent be1066a commit 46267ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_ = require('underscore');
1+
var _ = require('underscore');
22

33
function Resource(config) {
44
this.route = config.route;

lib/webmachine.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
var
2-
_ = require('underscore'),
1+
var _ = require('underscore'),
32
http = require('http'),
43
url = require('url'),
54
util = require('./util'),

0 commit comments

Comments
 (0)