Permalink
Browse files

Merge branch 'wip-jshintrc-predef' of https://github.com/scottgonzale…

…z/grunt into wip

* 'wip-jshintrc-predef' of https://github.com/scottgonzalez/grunt:
  Fixed conversion of predef to globals for jshintrc files.
  • Loading branch information...
cowboy committed Apr 26, 2012
2 parents 4fcba4e + 7bc5758 commit 8793e252cbe0fc332ea31924d723f95068852f01
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/lint.js
View
@@ -37,7 +37,7 @@ module.exports = function(grunt) {
if (options.predef) {
// Temp kluge for https://github.com/jshint/node-jshint/issues/104
globals = {};
- Object.keys(options.predef).forEach(function(key) {
+ options.predef.forEach(function(key) {
globals[key] = true;
});
delete options.predef;

0 comments on commit 8793e25

Please sign in to comment.