public/javascripts/lib/component.js in riojs-0.0.3 vs public/javascripts/lib/component.js in riojs-0.0.4

- old
+ new

@@ -77,9 +77,14 @@ if (args.length > 0 && args.last() != undefined && !args.last().ATTR) { var initializers = args.last(); if (Object.isString(initializers.requireCss)) { component.requireCss(initializers.requireCss); } + if (Object.isArray(initializers.requireCss)) { + initializers.requireCss.each(function(css) { + component.requireCss(css); + }); + } if (Object.isString(initializers.template)) { component.template(initializers.template); }