From 7f27ffd7bde89eccfa7687e7d1f3171b646c4f5b Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 1 Dec 2015 10:26:08 +0000 Subject: [PATCH] Fix typos & variable shadowing from PR comments --- reskindex.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reskindex.js b/reskindex.js index b628ae59e7..4b854de8ec 100755 --- a/reskindex.js +++ b/reskindex.js @@ -8,7 +8,7 @@ var args = require('optimist').argv; var header = args.h || args.header; -var componenetsDir = path.join('src', 'components'); +var componentsDir = path.join('src', 'components'); var componentIndex = path.join('src', 'component-index.js'); @@ -34,13 +34,13 @@ if (packageJson['matrix-react-parent']) { strm.write("module.exports.components = {};\n"); } -var files = glob.sync('**/*.js', {cwd: componenetsDir}); +var files = glob.sync('**/*.js', {cwd: componentsDir}); for (var i = 0; i < files.length; ++i) { var file = files[i].replace('.js', ''); - var module = (file.replace(/\//g, '.')); + var moduleName = (file.replace(/\//g, '.')); - strm.write("module.exports.components['"+module+"'] = require('./components/"+file+"');"); + strm.write("module.exports.components['"+moduleName+"'] = require('./components/"+file+"');"); strm.write('\n'); strm.uncork(); } @@ -54,9 +54,9 @@ if (fs.existsSync(vectorViewsPath)) { for (var i = 0; i < files.length; ++i) { var file = files[i].replace('.js', ''); - var module = (file.replace(/\//g, '.')); + var moduleName = (file.replace(/\//g, '.')); - strm.write("module.exports.components['"+module+"'] = require('./skins/vector/views/"+file+"');"); + strm.write("module.exports.components['"+moduleName+"'] = require('./skins/vector/views/"+file+"');"); strm.write('\n'); strm.uncork(); }