summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-12-01 01:32:41 -0600
committerkpdecker <kpdecker@gmail.com>2014-12-16 12:57:46 -0600
commit203df9d5b7cdd6eb9543c0544f08f37e1a77a223 (patch)
tree1c0879b7ddc7c8af711aa1a30f0bc5556afedaa9 /lib/handlebars/compiler/compiler.js
parent0d396ccd30b51d3c5ffb7fb3e79670d89b610163 (diff)
downloadhandlebars.js-203df9d5b7cdd6eb9543c0544f08f37e1a77a223.zip
handlebars.js-203df9d5b7cdd6eb9543c0544f08f37e1a77a223.tar.gz
handlebars.js-203df9d5b7cdd6eb9543c0544f08f37e1a77a223.tar.bz2
Remove unused vars and add jshint checking
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;