summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-14 12:27:02 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-14 12:27:02 -0500
commit3cea85b2b0d1478dbeb19c82f7781385268db6a2 (patch)
treeb063e979aae34532e0a1b9e582b83183f927bd37 /lib/handlebars/compiler/javascript-compiler.js
parent4d0e3c98ebec60d70202300128fb73e027eed3be (diff)
downloadhandlebars.js-3cea85b2b0d1478dbeb19c82f7781385268db6a2.zip
handlebars.js-3cea85b2b0d1478dbeb19c82f7781385268db6a2.tar.gz
handlebars.js-3cea85b2b0d1478dbeb19c82f7781385268db6a2.tar.bz2
Drop unused DECLARE opcode
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r--lib/handlebars/compiler/javascript-compiler.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js
index d52f2a0..00402ba 100644
--- a/lib/handlebars/compiler/javascript-compiler.js
+++ b/lib/handlebars/compiler/javascript-compiler.js
@@ -84,11 +84,7 @@ JavaScriptCompiler.prototype = {
for (i = 0, l = opcodes.length; i < l; i++) {
opcode = opcodes[i];
- if(opcode.opcode === 'DECLARE') {
- this[opcode.name] = opcode.value;
- } else {
- this[opcode.opcode].apply(this, opcode.args);
- }
+ this[opcode.opcode].apply(this, opcode.args);
// Reset the stripNext flag if it was not set by this operation.
if (opcode.opcode !== this.stripNext) {