summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 71e0ccf..2c0bd08 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -18,8 +18,6 @@ function scopedId(path) {
// an ID is simple if it only has one part, and that part is not
// `..` or `this`.
function simpleId(path) {
- var part = path.parts[0];
-
return path.parts.length === 1 && !scopedId(path) && !path.depth;
}
@@ -93,7 +91,7 @@ Compiler.prototype = {
compileProgram: function(program) {
var result = new this.compiler().compile(program, this.options);
- var guid = this.guid++, depth;
+ var guid = this.guid++;
this.usePartial = this.usePartial || result.usePartial;