[Layout] Avoid infinite digest exception

Auto-expand tree nodes on a timeout, instead of immediately.
This is necessary in cases where auto-expansion several
layers deep occurs; if done immediately, each expansion
will trigger a new digest cycle, which at a certain depth
will appear to Angular as unstable.

Done in the context of WTD-535.
This commit is contained in:
Victor Woeltjen
2014-12-05 13:31:57 -08:00
parent 7dadc62f23
commit 7080ca585e
2 changed files with 15 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
{
"key": "TreeNodeController",
"implementation": "TreeNodeController.js",
"depends": [ "$scope", "navigationService" ]
"depends": [ "$scope", "$timeout" ]
},
{
"key": "ActionGroupController",