Updated the boolean functions to work with YUI compressor. Linted other files for consistency
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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() {},
|
||||
|
||||
@@ -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("/");
|
||||
|
||||
@@ -26,7 +26,7 @@ Handlebars.SafeString.prototype.toString = function() {
|
||||
var possible = /[&<>"'`]/;
|
||||
|
||||
var escapeChar = function(chr) {
|
||||
return escape[chr] || "&"
|
||||
return escape[chr] || "&";
|
||||
};
|
||||
|
||||
Handlebars.Utils = {
|
||||
|
||||
Reference in New Issue
Block a user