Opened 11 years ago
Closed 11 years ago
#10054 closed defect (fixed)
Tree: race condition when setting path on Tree initialization or soon after
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dijit | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Tree.attr("path", ...) is asynchronous, and so is Tree startup itself (since it expands certain nodes based on the persists=true flag).
Thus, the _setPathAttr() code could end up trying to pull from the data store at the same time that the tree is expanding nodes according to the cookie.
Seems like we need to wait to process the attr("path", ...) until initialization has completed, or alternately if path is specified as an initialization parameter then process the path before processing the cookie?
See also #7187.
Change History (3)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
Milestone: | 1.5 → 1.4 |
---|---|
Status: | new → assigned |
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [20510]) Cleanup on Tree _setPathAttr(), related to onLoad event work. Fixes #10054, refs #7187 !strict