#1072 closed defect (fixed)
Widgets name conflict accross namespaces
Reported by: | Owned by: | Adam Peller | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | widgets namespace | Cc: | |
Blocked By: | Blocking: |
Description
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 15 years ago by
Owner: | changed from anonymous to Adam Peller |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
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.