Opened 13 years ago

Last modified 13 years ago

#10054 closed defect

Tree: race condition when setting path on Tree initialization or soon after — at Initial Version

Reported by: bill Owned by: bill
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description

Tree.attr("path", ...) is asynchronous, as 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 (0)

Note: See TracTickets for help on using tickets.