Skip to content

Commit

Permalink
fix: don't test for .js in path because of requirejs
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Jul 23, 2014
1 parent 8412cb4 commit 6045214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
cssFiles.push(path);
} else if(/\.(htm|html)[^\.]*$/.test(path) && templatesFiles.indexOf(path) === -1) {
templatesFiles.push(path);
} else if (/\.(js)[^\.]*$/.test(path) && jsFiles.indexOf(path) === -1) {
} else if (jsFiles.indexOf(path) === -1) {
jsFiles.push(path);
}
}
Expand Down

0 comments on commit 6045214

Please sign in to comment.