summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorAlan Johnson <alan@commondream.net>2011-09-01 18:49:12 -0700
committerAlan Johnson <alan@commondream.net>2011-09-01 18:49:12 -0700
commit91bbc4fd2ca1e161fad3fba0c51a3732216503b3 (patch)
tree3008758a1d2c580e8fd4522eb93f63b350c025eb /lib/handlebars/compiler/compiler.js
parent96571b93c1fad62fb207c235b2277602b056d008 (diff)
parent696dc2dc365f8d8cceee5233df74ad9bff54b001 (diff)
downloadhandlebars.js-91bbc4fd2ca1e161fad3fba0c51a3732216503b3.zip
handlebars.js-91bbc4fd2ca1e161fad3fba0c51a3732216503b3.tar.gz
handlebars.js-91bbc4fd2ca1e161fad3fba0c51a3732216503b3.tar.bz2
Merge pull request #114 from markmarkoh/patch-1
The missing semicolon is breaking our code when we minify.
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index a8fb31f..a3fd120 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -521,7 +521,8 @@ Handlebars.JavaScriptCompiler = function() {};
+ " || "
+ this.nameLookup('depth' + this.lastContext, name, 'context');
}
-
+
+ toPush += ';';
this.source.push(toPush);
} else {
this.pushStack('depth' + this.lastContext);