summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r--lib/handlebars/compiler/visitor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/visitor.js b/lib/handlebars/compiler/visitor.js
index 692a511..ba7b376 100644
--- a/lib/handlebars/compiler/visitor.js
+++ b/lib/handlebars/compiler/visitor.js
@@ -11,7 +11,7 @@ Visitor.prototype = {
// Visits a given value. If mutating, will replace the value if necessary.
acceptKey: function(node, name) {
- var value = this.accept(node[name]);
+ let value = this.accept(node[name]);
if (this.mutating) {
// Hacky sanity check:
if (value && (!value.type || !AST[value.type])) {
@@ -34,7 +34,7 @@ Visitor.prototype = {
// Traverses a given array. If mutating, empty respnses will be removed
// for child elements.
acceptArray: function(array) {
- for (var i = 0, l = array.length; i < l; i++) {
+ for (let i = 0, l = array.length; i < l; i++) {
this.acceptKey(array, i);
if (!array[i]) {
@@ -55,7 +55,7 @@ Visitor.prototype = {
}
this.current = object;
- var ret = this[object.type](object);
+ let ret = this[object.type](object);
this.current = this.parents.shift();