Skip to content

Commit

Permalink
typo error : reused same variable name inside function
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinhayaran committed Mar 12, 2014
1 parent e8acb80 commit 940e41d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ exports.init = function(grunt) {
}

// iterate over all modules that are configured for replacement
config.replaceRequireScript.forEach(function (file, idx) {
var files = grunt.file.expand(file.files);
config.replaceRequireScript.forEach(function (entry, idx) {
var files = grunt.file.expand(entry.files);
var filesEvaluated = 0;

// iterate over found html files
Expand All @@ -38,7 +38,7 @@ exports.init = function(grunt) {
var $ = cheerio.load(match),
elm = $('script');
if (elm.attr('data-main')){
var insertScript = (file.modulePath || elm.attr('data-main'));
var insertScript = (entry.modulePath || elm.attr('data-main'));
elm.attr('src', insertScript + '.js');
elm.removeAttr('data-main');
// replace i'th occurrence in content
Expand Down

0 comments on commit 940e41d

Please sign in to comment.