Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Fixed name conflict bug in settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
skibblenybbles committed Sep 8, 2014
1 parent 6ee13a7 commit 0e7f400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},

Expand Down

0 comments on commit 0e7f400

Please sign in to comment.