Do not perform unnecessary self-assign
This commit is contained in:
@@ -552,7 +552,9 @@ Handlebars.JavaScriptCompiler = function() {};
|
||||
this.context.aliases.helperMissing = 'helpers.helperMissing';
|
||||
this.context.aliases.undef = 'void 0';
|
||||
this.source.push("else if(" + id + "=== undef) { " + nextStack + " = helperMissing.call(" + helperMissingString + "); }");
|
||||
this.source.push("else { " + nextStack + " = " + id + "; }");
|
||||
if (nextStack !== id) {
|
||||
this.source.push("else { " + nextStack + " = " + id + "; }");
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user