Opened 10 years ago

Closed 10 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 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 (3)

comment:1 Changed 10 years ago by bill

Description: modified (diff)

comment:2 Changed 10 years ago by bill

Milestone: 1.51.4
Status: newassigned

comment:3 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [20510]) Cleanup on Tree _setPathAttr(), related to onLoad event work. Fixes #10054, refs #7187 !strict

Note: See TracTickets for help on using tickets.