diff options
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/helpers.js | 4 | ||||
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js index 31daf6d..fc0120c 100644 --- a/lib/handlebars/compiler/helpers.js +++ b/lib/handlebars/compiler/helpers.js @@ -33,7 +33,6 @@ export function stripComment(comment) { } export function preparePath(data, parts, locInfo) { - /*jshint -W040 */ locInfo = this.locInfo(locInfo); let original = data ? '@' : '', @@ -64,7 +63,6 @@ export function preparePath(data, parts, locInfo) { } export function prepareMustache(path, params, hash, open, strip, locInfo) { - /*jshint -W040 */ // Must use charAt to support IE pre-10 let escapeFlag = open.charAt(3) || open.charAt(2), escaped = escapeFlag !== '{' && escapeFlag !== '&'; @@ -73,7 +71,6 @@ export function prepareMustache(path, params, hash, open, strip, locInfo) { } export function prepareRawBlock(openRawBlock, content, close, locInfo) { - /*jshint -W040 */ if (openRawBlock.path.original !== close) { let errorNode = {loc: openRawBlock.path.loc}; @@ -91,7 +88,6 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) { } export function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { - /*jshint -W040 */ // When we are chaining inverse calls, we will not have a close path if (close && close.path && openBlock.path.original !== close.path.original) { let errorNode = {loc: openBlock.path.loc}; diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 75e50d2..8830661 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -425,7 +425,6 @@ JavaScriptCompiler.prototype = { // // Push the data lookup operator lookupData: function(depth, parts) { - /*jshint -W083 */ if (!depth) { this.pushStackLiteral('data'); } else { @@ -436,7 +435,6 @@ JavaScriptCompiler.prototype = { }, resolvePath: function(type, parts, i, falsy) { - /*jshint -W083 */ if (this.options.strict || this.options.assumeObjects) { this.push(strictLookup(this.options.strict, this, parts, type)); return; |