Skip to content

Commit

Permalink
Don't attempt to render object variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
nporteschaikin committed Nov 4, 2014
1 parent 94f618d commit 335fd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/theme/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Compiler.prototype = {
variable: function (variable) {
var ref = 'ctx["' + variable.value + '"]';
this.buffer('if (!context) { buf.push("{' + variable.value + '}"); }'
+ 'else { buf.push(' + ref + '); }');
+ 'else if (typeof ' + ref + ' !== "object") { buf.push(' + ref + '); }');
},

string: function (str) {
Expand Down

0 comments on commit 335fd5d

Please sign in to comment.