[API] Add MCTView directive as an adapter

This commit is contained in:
Victor Woeltjen
2016-05-27 16:19:20 -07:00
parent a07e2fb8e5
commit 136f2ae785
3 changed files with 59 additions and 0 deletions

View File

@ -21,6 +21,13 @@ define([
this.legacyBundle.extensions.types =
this.legacyBundle.extensions.types || [];
this.legacyBundle.extensions.types.push(legacyDef);
var viewFactory = type.view(this.regions.main);
if (viewFactory) {
this.legacyBundle.extensions.views =
this.legacyBundle.extensions.views || [];
}
};
MCT.prototype.start = function () {
@ -28,5 +35,9 @@ define([
this.emit('start');
};
MCT.prototype.regions = {
main: "MAIN"
};
return MCT;
});