[Selection] Handle selection changes

...from the InspectorRegion
This commit is contained in:
Victor Woeltjen 2016-09-21 12:26:57 -07:00
parent e2631bdcfd
commit 7341ed9d03

View File

@ -1,4 +1,4 @@
define([], function () {
define(['zepto'], function ($) {
function InspectorRegion(element, selection, inspectors) {
this.element = element;
this.selection = selection;
@ -9,7 +9,14 @@ define([], function () {
}
InspectorRegion.prototype.onSelectionChange = function (item) {
var $element = $(this.element);
var providers = this.inspectors.get(item);
$element.empty();
if (factories.length > 0) {
providers[0].view(item).show(this.element);
}
};
InspectorRegion.prototype.activate = function () {