Permalink
Browse files

Make app.prefetch ignore hidden files. Should fix #47

  • Loading branch information...
1 parent 09004e4 commit 469a0681537e83dd0dc863ba13d9cb2031bb7f5a Dan Pupius committed Apr 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/matador.js
View
@@ -122,6 +122,7 @@ module.exports.createApp = function (baseDir, configuration, options) {
var d = dir + '/' + type
if (!isDirectory(d)) return
v.each(fs.readdirSync(d), function (file) {
+ if (file.charAt(0) == '.') return
if (file.substr(file.length - 3) === '.js') file = file.substr(0, file.length - 3)
loadFile(type, file, dir)
})

0 comments on commit 469a068

Please sign in to comment.