diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-12-23 21:06:57 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-12-23 21:06:57 -0800 |
commit | 8df848894749b3fabc2793166ea492a822be9580 (patch) | |
tree | 586664b786b07c04f1a26ec2b7b630bab6cf5cea /lib/handlebars/compiler | |
parent | 17ee7ffacaa0307df866b085d42573be6267f4df (diff) | |
parent | 2676efb2225a3a5536fb58ace9bbca6a8dbd0b31 (diff) | |
download | handlebars.js-8df848894749b3fabc2793166ea492a822be9580.zip handlebars.js-8df848894749b3fabc2793166ea492a822be9580.tar.gz handlebars.js-8df848894749b3fabc2793166ea492a822be9580.tar.bz2 |
Merge pull request #347 from spikebrehm/master
Makes Handlebars.log available in both builds and fleshes out `log` helper.
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/base.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/handlebars/compiler/base.js b/lib/handlebars/compiler/base.js index 4bb8735..5ce4222 100644 --- a/lib/handlebars/compiler/base.js +++ b/lib/handlebars/compiler/base.js @@ -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; |