Do not perform unnecessary self-assign

This commit is contained in:
kpdecker
2011-07-31 21:44:27 -05:00
parent d6b97cf34d
commit 318c08a97e
+3 -1
View File
@@ -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 + "; }");
}
}
});
},