Fix require() to work with index.js

This commit is contained in:
Jason Kohles 2014-03-13 12:10:51 -04:00
parent 7e435be565
commit 5bec691575

View file

@ -80,7 +80,7 @@ module specification, the '.js' suffix is optional.
}
} else {
// look for an index.js file
var indexJsFile = new File( dir + './index.js' );
var indexJsFile = new File( dir, './index.js' );
if ( indexJsFile.exists() ) {
return indexJsFile;
} else {