Skip to content

Commit

Permalink
stop polluting the global namespace with the model code on the front end
Browse files Browse the repository at this point in the history
  • Loading branch information
Techwraith committed Oct 31, 2012
1 parent 27fe544 commit ad15957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/build.js
Expand Up @@ -11,7 +11,7 @@ exports.init = function (app, callback) {
file = modelDir[i].replace('app/models', '').replace('/', '');
if (file) {
content = fs.readFileSync(modelDir[i], 'utf8');
files.push(content);
files.push("(function(){\n" + content + "}());");
}
}
built = files.join('\n\n');
Expand Down

0 comments on commit ad15957

Please sign in to comment.