Turn off jshint error about Function eval.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -441,6 +441,7 @@ module.exports = function (grunt) { | ... | @@ -441,6 +441,7 @@ module.exports = function (grunt) { |
441 | 441 | ||
442 | var stringify = require('node-stringify'); | 442 | var stringify = require('node-stringify'); |
443 | //templateOptions.requireConfig.callback = eval('(' + stringify(callbackBuilder) + ')(' + JSON.stringify(mpConfig.base) + ')'); | 443 | //templateOptions.requireConfig.callback = eval('(' + stringify(callbackBuilder) + ')(' + JSON.stringify(mpConfig.base) + ')'); |
444 | /*jshint -W054*/ | ||
444 | templateOptions.requireConfig.callback = new Function(stringify(instrumentationCallback) + '(' + JSON.stringify(mpConfig.base) + ');'); | 445 | templateOptions.requireConfig.callback = new Function(stringify(instrumentationCallback) + '(' + JSON.stringify(mpConfig.base) + ');'); |
445 | 446 | ||
446 | templateOptions = { | 447 | templateOptions = { | ... | ... |
-
Please register or sign in to post a comment