b7140c57 by Adam Heath

Turn off jshint error about Function eval.

1 parent 9f524f72
...@@ -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 = {
......