Permalink
Browse files

Added "" for undefined prop default. Closes #130

  • Loading branch information...
1 parent c2750fd commit 3693a06d94f64e0a1d8a6ef9539bf4937fb6b3b2 @tj tj committed Mar 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/compiler.js
View
@@ -234,6 +234,7 @@ Compiler.prototype = {
// Buffer code
if (code.buffer) {
var val = code.val.trimLeft();
+ val = '(' + val + ') || ""';
if (code.escape) val = 'escape(' + val + ')';
this.buf.push("buf.push(" + val + ");");
} else {

0 comments on commit 3693a06

Please sign in to comment.