summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-23 17:44:20 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-23 17:44:20 -0500
commit84d646bb5d5a8bb01bfb9465ee1078161f069742 (patch)
tree07233774619be9d4e00e8edaaf0fc528262f40a2 /lib/handlebars/compiler/compiler.js
parentccd803ff15e98186a82988a67d9aeff411612af4 (diff)
downloadhandlebars.js-84d646bb5d5a8bb01bfb9465ee1078161f069742.zip
handlebars.js-84d646bb5d5a8bb01bfb9465ee1078161f069742.tar.gz
handlebars.js-84d646bb5d5a8bb01bfb9465ee1078161f069742.tar.bz2
Move strip processing into AST helper logic
We already have to track these behaviors for the standalone parsing and rather than having two whitespace pruning implementations this moves all of the behavior into one place. Fixes #852
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index c7fdf3d..29718d0 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -69,19 +69,7 @@ Compiler.prototype = {
},
accept: function(node) {
- var strip = node.strip || {},
- ret;
- if (strip.left) {
- this.opcode('strip');
- }
-
- ret = this[node.type](node);
-
- if (strip.right) {
- this.opcode('strip');
- }
-
- return ret;
+ return this[node.type](node);
},
program: function(program) {