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 Version 1

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 bill)

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 (1)

comment:1 Changed 13 years ago by bill

Description: modified (diff)
Note: See TracTickets for help on using tickets.