From ea37c636ee94992a1ec6cf0771e1d49ecb964b24 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 3 Mar 2015 18:35:28 -0800 Subject: [PATCH] [Fixed Position] Use updated selection mechanism Use updated, more general approach to handling selections. WTD-929. --- platform/features/layout/src/FixedController.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/platform/features/layout/src/FixedController.js b/platform/features/layout/src/FixedController.js index afef3355b4..fc71829e8b 100644 --- a/platform/features/layout/src/FixedController.js +++ b/platform/features/layout/src/FixedController.js @@ -1,8 +1,8 @@ /*global define*/ define( - ['./LayoutDrag', './LayoutSelection', './FixedProxy', './elements/ElementProxies'], - function (LayoutDrag, LayoutSelection, FixedProxy, ElementProxies) { + ['./LayoutDrag', './FixedProxy', './elements/ElementProxies'], + function (LayoutDrag, FixedProxy, ElementProxies) { "use strict"; var DEFAULT_DIMENSIONS = [ 2, 1 ], @@ -208,14 +208,8 @@ define( }); } - // Track current selection state - if (Array.isArray($scope.selection)) { - selection = new LayoutSelection( - $scope.selection, - new FixedProxy(addElement, $q, dialogService) - ); - } + selection = $scope.selection; // Refresh list of elements whenever model changes $scope.$watch("model.modified", refreshElements);