From d891affe481efa2d8ef25bb44f32689d3ee218cc Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 17 Jun 2016 10:21:00 -0700 Subject: [PATCH] [API] Move view off of type --- src/MCT.js | 4 ++++ src/api/Type.js | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/MCT.js b/src/MCT.js index c183b259f4..3d6eb3495b 100644 --- a/src/MCT.js +++ b/src/MCT.js @@ -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; diff --git a/src/api/Type.js b/src/api/Type.js index 157c3355e4..6ce5d29a86 100644 --- a/src/api/Type.js +++ b/src/api/Type.js @@ -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.