Fixed errors occurring because of undefined properties on nested paths.

This commit is contained in:
Alan Johnson
2011-09-02 10:56:37 -04:00
parent c1c455acc8
commit 6b18873d23
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ Handlebars.JavaScriptCompiler = function() {};
lookup: function(name) {
var topStack = this.topStack();
this.source.push(topStack + " = " + this.nameLookup(topStack, name, 'context') + ";");
this.source.push(topStack + " = " + topStack + " ? " + this.nameLookup(topStack, name, 'context') + " : " + topStack + ";");
},
pushStringParam: function(string) {