Merge assets from iconfig.assets to meta #592

Closed
wants to merge 2 commits into
from
@@ -44,6 +44,7 @@ YUI.add('mojito-output-adapter-addon', function(Y, NAME) {
// NOTE: 'this' is the ActionContext instance
var callbackFunc = more ? 'flush' : 'done',
instance = this.command.instance,
+ config = instance.config || {},
context = this.command.context || {},
adapter = this._adapter,
action = this.command.action,
@@ -119,6 +120,7 @@ YUI.add('mojito-output-adapter-addon', function(Y, NAME) {
mojitView.engine = meta.view.engine;
}
+ meta.assets = Y.mojito.util.metaMerge(meta.assets, config.assets || {});
// Here we ask each "thing" attached to the AC if it wants to add view
// "meta"
Y.Object.each(this, function(item) {