Skip to content

Commit

Permalink
Upgrade JSHint and fix JSHint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 27, 2014
1 parent 52c3eeb commit df1f070
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .jshintrc
Expand Up @@ -2,19 +2,20 @@
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es5": true,
"evil": true,
"globalstrict": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"nonew": true,
"nomen": true,
"quotmark": "double",
"trailing": true,
"undef": true,
"unused": true,
"white": true
"white": true,
"globals": {
"MessageChannel": false
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -19,7 +19,7 @@
"test-browser-only": "opener http://localhost:9007/test/browserOnly/index.html && http-server . -p 9007"
},
"devDependencies": {
"jshint": "~1.1",
"jshint": "^2.5.0",
"mocha": "1.9.x",
"http-server": "~0.5.3",
"opener": "~1.3",
Expand Down
8 changes: 4 additions & 4 deletions setImmediate.js
Expand Up @@ -14,9 +14,9 @@
function addFromSetImmediateArguments(args) {
var handler = args[0];
args[0] = undefined;
tasksByHandle[nextHandle] = typeof handler === "function"
? handler.bind.apply(handler, args)
: eval.bind(undefined, "" + handler);
tasksByHandle[nextHandle] = typeof handler === "function" ?
handler.bind.apply(handler, args) :
eval.bind(undefined, "" + handler);
return nextHandle++;
}

Expand Down Expand Up @@ -163,4 +163,4 @@

attachTo.setImmediate = setImmediate;
attachTo.clearImmediate = clearImmediate;
}(Function("return this")()));
}(new Function("return this")()));

0 comments on commit df1f070

Please sign in to comment.