Opened 15 years ago

Closed 15 years ago

#2584 closed defect (invalid)

TreeLoadingController ignores node widget namespace

Reported by: [email protected] Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:


In TreeLoadingController.js, the loadProcessResponse function only uses the child node's unqualified widgetType when calling dojo.widget.createWidget. This breaks for tree node widgets that aren't in the default namespace.

Culprit is this line (line 74 in dojo rev 6824):

newChildren[i] = dojo.widget.createWidget(node.widgetType, newChildren[i]);

Could be fixed like this:

var namespacedWidgetType = (node.ns ? node.ns+":" : "") + node.widgetType; newChildren[i] = dojo.widget.createWidget(namespacedWidgetType, newChildren[i]);

Change History (1)

comment:1 Changed 15 years ago by bill

Resolution: invalid
Status: newclosed

Tree has been rearchitected in Dijit 0.9 to use to get data; this is no longer an issue.

Note: See TracTickets for help on using tickets.