[Templates] Change watch order

...to work around order-sensitive test case
This commit is contained in:
Victor Woeltjen 2016-02-26 16:26:31 -08:00
parent 7240ff4f8d
commit 70ed16491a

View File

@ -102,15 +102,15 @@ define(
// Recalculate swimlane state on changes
$scope.$watch("domainObject", swimlanePopulator.populate);
// Pass selection object into swimlane populator
$scope.$watch("selection", swimlanePopulator.selection);
// Also recalculate whenever anything in view is modified
$scope.$watch(modificationSum, repopulateSwimlanes);
// Carry over changes in swimlane set to changes in graphs
$scope.$watch(graphMask, repopulateGraphs);
// Pass selection object into swimlane populator
$scope.$watch("selection", swimlanePopulator.selection);
// Convey current selection to drag handle populator
$scope.$watch("selection.get()", dragPopulator.select);