Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1072 closed defect (fixed)

Widgets name conflict accross namespaces

Reported by: [email protected] Owned by: Adam Peller
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: widgets namespace Cc:
Blocked By: Blocking:


It seems dojo fails to create widgets from the specified namespace if it already has a widget of the same type in the "dojo" namespace.

For example: I want to create a custom tree. If I create a new widget (that inherits from the "Tree") with a different from "Tree" name ("foo.widget.Treex") and do <div dojoType="foo:Treex"> everything works. But, if I create "foo.widget.Tree" and do <div dojoType="foo:Tree">, original "dojo.widget.Tree" is used for the widget, not my "foo.widget.Tree". The only differenc is in the name. From the "Treex" to the "Tree".

Change History (3)

comment:1 Changed 16 years ago by Adam Peller

Owner: changed from anonymous to Adam Peller

Yup. I think the workaround put in the other day to enable deprecation of the old custom widget method caused this. Widgets are getting defined in their namespace and also in the dojo namespace, which probably isn't good... I need to see if I can find another workaround.

comment:2 Changed 16 years ago by Adam Peller

Resolution: fixed
Status: newclosed

It wasn't the deprecation code that caused this (though frankly I'm not sure why that didn't cause additional collisions) Finishing the namespace support in the parser appears to have solved this problem.

comment:3 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.