summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/helpers.js
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2015-04-16 17:12:40 -0500
committerKevin Decker <kpdecker@gmail.com>2015-04-16 17:12:40 -0500
commitc6ab044fa88d54ace17200b47213c80cdb24ead6 (patch)
tree2bbdad0c644ba83acc219702500390b874f3ac90 /lib/handlebars/compiler/helpers.js
parent2a02261a5bc78f246c63dd8d467a12f2c1f63734 (diff)
parentfdc94207a32ad60336a60cdb97b08726d10cae39 (diff)
downloadhandlebars.js-c6ab044fa88d54ace17200b47213c80cdb24ead6.zip
handlebars.js-c6ab044fa88d54ace17200b47213c80cdb24ead6.tar.gz
handlebars.js-c6ab044fa88d54ace17200b47213c80cdb24ead6.tar.bz2
Merge pull request #998 from wycats/babel
Add full support for es6
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
-rw-r--r--lib/handlebars/compiler/helpers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js
index 4a502d8..7f784ad 100644
--- a/lib/handlebars/compiler/helpers.js
+++ b/lib/handlebars/compiler/helpers.js
@@ -1,4 +1,4 @@
-import Exception from "../exception";
+import Exception from '../exception';
export function SourceLocation(source, locInfo) {
this.source = source;
@@ -23,7 +23,7 @@ export function id(token) {
export function stripFlags(open, close) {
return {
open: open.charAt(2) === '~',
- close: close.charAt(close.length-3) === '~'
+ close: close.charAt(close.length - 3) === '~'
};
}
@@ -41,7 +41,7 @@ export function preparePath(data, parts, locInfo) {
depth = 0,
depthString = '';
- for(var i=0,l=parts.length; i<l; i++) {
+ for (var i = 0, l = parts.length; i < l; i++) {
var part = parts[i].part,
// If we have [] syntax then we do not treat path references as operators,
// i.e. foo.[this] resolves to approximately context.foo['this']