[API] Move view off of type

This commit is contained in:
Victor Woeltjen 2016-06-17 10:21:00 -07:00
parent 21a618d1ce
commit d891affe48
2 changed files with 4 additions and 8 deletions

View File

@ -15,6 +15,10 @@ define([
});
MCT.prototype.MCT = MCT;
MCT.prototype.view = function (region, factory) {
};
MCT.prototype.type = function (key, type) {
var legacyDef = type.toLegacyDefinition();
legacyDef.key = key;

View File

@ -15,16 +15,8 @@ define(function () {
*/
function Type(definition) {
this.definition = definition;
this.views = {};
}
Type.prototype.view = function (region, factory) {
if (arguments.length > 1) {
this.views[region] = factory;
}
return this.views[region];
};
/**
* Get a definition for this type that can be registered using the
* legacy bundle format.