diff options
author | kpdecker <kpdecker@gmail.com> | 2015-04-20 02:38:28 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-04-20 02:38:28 -0500 |
commit | 4bed826d0e210c336fb9e500835b1c1926562da5 (patch) | |
tree | afd32d4dc7b4c2fcf6c38d0355def38ddaffdcc0 /lib/handlebars/compiler/visitor.js | |
parent | 0263aa48bc8c8cdcd332edd01a644a9a0fd1cc81 (diff) | |
download | handlebars.js-4bed826d0e210c336fb9e500835b1c1926562da5.zip handlebars.js-4bed826d0e210c336fb9e500835b1c1926562da5.tar.gz handlebars.js-4bed826d0e210c336fb9e500835b1c1926562da5.tar.bz2 |
Update for let and optional parameters
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r-- | lib/handlebars/compiler/visitor.js | 6 |
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(); |