[Templates] Change watch order
...to work around order-sensitive test case
This commit is contained in:
@@ -102,15 +102,15 @@ define(
|
|||||||
// Recalculate swimlane state on changes
|
// Recalculate swimlane state on changes
|
||||||
$scope.$watch("domainObject", swimlanePopulator.populate);
|
$scope.$watch("domainObject", swimlanePopulator.populate);
|
||||||
|
|
||||||
// Pass selection object into swimlane populator
|
|
||||||
$scope.$watch("selection", swimlanePopulator.selection);
|
|
||||||
|
|
||||||
// Also recalculate whenever anything in view is modified
|
// Also recalculate whenever anything in view is modified
|
||||||
$scope.$watch(modificationSum, repopulateSwimlanes);
|
$scope.$watch(modificationSum, repopulateSwimlanes);
|
||||||
|
|
||||||
// Carry over changes in swimlane set to changes in graphs
|
// Carry over changes in swimlane set to changes in graphs
|
||||||
$scope.$watch(graphMask, repopulateGraphs);
|
$scope.$watch(graphMask, repopulateGraphs);
|
||||||
|
|
||||||
|
// Pass selection object into swimlane populator
|
||||||
|
$scope.$watch("selection", swimlanePopulator.selection);
|
||||||
|
|
||||||
// Convey current selection to drag handle populator
|
// Convey current selection to drag handle populator
|
||||||
$scope.$watch("selection.get()", dragPopulator.select);
|
$scope.$watch("selection.get()", dragPopulator.select);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user