overzealous approach to implmenting Handlebars.logger.log and 'log' helper.

This commit is contained in:
Spike Brehm
2012-10-20 15:26:57 -07:00
parent a927a9b0ad
commit 2676efb222
2 changed files with 21 additions and 12 deletions
-10
View File
@@ -12,16 +12,6 @@ Handlebars.parse = function(string) {
Handlebars.print = function(ast) {
return new Handlebars.PrintVisitor().accept(ast);
};
Handlebars.logger = {
DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3,
// override in the host environment
log: function(level, str) {}
};
Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); };
// END(BROWSER)
module.exports = Handlebars;