diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/handlebars/ast.js | 4 | ||||
-rw-r--r-- | lib/handlebars/compiler.js | 4 | ||||
-rw-r--r-- | lib/handlebars/printer.js | 8 | ||||
-rw-r--r-- | lib/handlebars/utils.js | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/handlebars/ast.js b/lib/handlebars/ast.js index 1002bd5..69bd5eb 100644 --- a/lib/handlebars/ast.js +++ b/lib/handlebars/ast.js @@ -88,9 +88,9 @@ var Handlebars = require("handlebars"); this.integer = integer; }; - Handlebars.AST.BooleanNode = function(boolean) { + Handlebars.AST.BooleanNode = function(bool) { this.type = "BOOLEAN"; - this.boolean = boolean; + this.boolean = bool; }; Handlebars.AST.CommentNode = function(comment) { diff --git a/lib/handlebars/compiler.js b/lib/handlebars/compiler.js index 42e5c2c..4d74d14 100644 --- a/lib/handlebars/compiler.js +++ b/lib/handlebars/compiler.js @@ -228,8 +228,8 @@ Handlebars.JavaScriptCompiler = function() {}; this.opcode('push', integer.integer); }, - BOOLEAN: function(boolean) { - this.opcode('push', boolean.boolean); + BOOLEAN: function(bool) { + this.opcode('push', bool.boolean); }, comment: function() {}, diff --git a/lib/handlebars/printer.js b/lib/handlebars/printer.js index ff3f038..854d5c4 100644 --- a/lib/handlebars/printer.js +++ b/lib/handlebars/printer.js @@ -111,11 +111,11 @@ Handlebars.PrintVisitor.prototype.STRING = function(string) { Handlebars.PrintVisitor.prototype.INTEGER = function(integer) { return "INTEGER{" + integer.integer + "}"; -} +}; -Handlebars.PrintVisitor.prototype.BOOLEAN = function(boolean) { - return "BOOLEAN{" + boolean.boolean + "}"; -} +Handlebars.PrintVisitor.prototype.BOOLEAN = function(bool) { + return "BOOLEAN{" + bool.boolean + "}"; +}; Handlebars.PrintVisitor.prototype.ID = function(id) { var path = id.parts.join("/"); diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index 5fdfb0e..4202c77 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -26,7 +26,7 @@ Handlebars.SafeString.prototype.toString = function() { var possible = /[&<>"'`]/; var escapeChar = function(chr) { - return escape[chr] || "&" + return escape[chr] || "&"; }; Handlebars.Utils = { |