[Fixed Position] Use updated selection mechanism

Use updated, more general approach to handling selections.
WTD-929.
This commit is contained in:
Victor Woeltjen 2015-03-03 18:35:28 -08:00
parent bc69f19012
commit ea37c636ee

View File

@ -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);