Install multiple files refs, instead of multiple files.src refs, as it
prevents the autovivification from failing when the source hasn't been defined in the config.
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -240,7 +240,11 @@ module.exports = function (grunt) { | ... | @@ -240,7 +240,11 @@ module.exports = function (grunt) { |
240 | 240 | ||
241 | function jscheckerAddExtra(src, container, dest) { | 241 | function jscheckerAddExtra(src, container, dest) { |
242 | if (src) { | 242 | if (src) { |
243 | container[dest] = (container[dest] || []).concat(src); | 243 | _.each(src, function(value) { |
244 | var data = {}; | ||
245 | data[dest] = value; | ||
246 | container.push(data); | ||
247 | }); | ||
244 | } | 248 | } |
245 | } | 249 | } |
246 | function createJschecker(name, browserOptions, modelOptions, viewOptions) { | 250 | function createJschecker(name, browserOptions, modelOptions, viewOptions) { | ... | ... |
-
Please register or sign in to post a comment