diff options
Diffstat (limited to 'lib/handlebars/compiler/code-gen.js')
-rw-r--r-- | lib/handlebars/compiler/code-gen.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/code-gen.js b/lib/handlebars/compiler/code-gen.js index 92020f0..0c40e00 100644 --- a/lib/handlebars/compiler/code-gen.js +++ b/lib/handlebars/compiler/code-gen.js @@ -1,4 +1,5 @@ -import {isArray} from "../utils"; +/*global define */ +import {isArray} from '../utils'; var SourceNode; @@ -56,7 +57,7 @@ function castChunk(chunk, codeGen, loc) { return ret; } else if (typeof chunk === 'boolean' || typeof chunk === 'number') { // Handle primitives that the SourceNode will throw up on - return chunk+''; + return chunk + ''; } return chunk; } @@ -90,7 +91,7 @@ CodeGen.prototype = { }, empty: function(loc) { - loc = loc || this.currentLocation || {start:{}}; + loc = loc || this.currentLocation || {start: {}}; return new SourceNode(loc.start.line, loc.start.column, this.srcFile); }, wrap: function(chunk, loc) { @@ -98,7 +99,7 @@ CodeGen.prototype = { return chunk; } - loc = loc || this.currentLocation || {start:{}}; + loc = loc || this.currentLocation || {start: {}}; chunk = castChunk(chunk, this, loc); return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk); |