Forgot === for falsy check.
This commit is contained in:
@@ -532,7 +532,7 @@ Handlebars.JavaScriptCompiler = function() {};
|
||||
|
||||
lookup: function(name) {
|
||||
var topStack = this.topStack();
|
||||
this.source.push(topStack + " = (" + topStack + " == null || " + topStack + " == undefined || " + topStack + " == false ? " +
|
||||
this.source.push(topStack + " = (" + topStack + " === null || " + topStack + " === undefined || " + topStack + " === false ? " +
|
||||
topStack + " : " + this.nameLookup(topStack, name, 'context') + ");");
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user