From 0e7f400ecbd789af5b0446cc1f70065a77790fa4 Mon Sep 17 00:00:00 2001 From: Mike Kibbel Date: Mon, 8 Sep 2014 13:45:30 -0400 Subject: [PATCH] Fixed name conflict bug in settings.js --- settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings.js b/settings.js index 69bb14a..a8136b0 100644 --- a/settings.js +++ b/settings.js @@ -28,12 +28,12 @@ var //--------------- // Reset the require() cache for formidable and for any paths resolved with the path library. reset = function() { - var path = cache[defaultPath] && cache[defaultPath].path; + var cached = cache[defaultPath] && cache[defaultPath].path; delete require.cache[path.join(__dirname, 'formidable.js')]; - if (path) { - path.js.clear(); - path.template.clear(); + if (cached) { + cached.js.clear(); + cached.template.clear(); } },