From acf0120861c781b7b245a405f3d4008fe4659ccd Mon Sep 17 00:00:00 2001 From: andrevanzuydam Date: Tue, 19 Sep 2017 16:38:28 +0200 Subject: [PATCH] Update partials-loader.js Added var declarations for strict mode --- lib/partials-loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/partials-loader.js b/lib/partials-loader.js index 5107644..6c1775a 100755 --- a/lib/partials-loader.js +++ b/lib/partials-loader.js @@ -62,11 +62,11 @@ exports.handlebars = function(options) { * @return { undefined } [ This returns nothing. ] */ var loadPartials = function(template_engine_reference, root_directory, current_directory, template_extensions, delimiter_symbol) { - files = fs.readdirSync(current_directory); + var files = fs.readdirSync(current_directory); for(var i = 0; i < files.length; i++) { var fullPath = path.join(current_directory, files[i]); - stat = fs.statSync(fullPath); + var stat = fs.statSync(fullPath); if(stat.isFile()) { var file_extension = path.extname(fullPath).slice(1); @@ -187,4 +187,4 @@ var validateTemplateExtensions = function(template_extensions) { new Error('The template extensions passed into the ' + library_name + ' function are not an ARRAY or STRING type. Please fix this.') } return template_extensions; -} \ No newline at end of file +}