Can you either file a bug about the other component users of
classname, or if it is the same pattern, fix them all with your fix
for grid?
Thanks!
On 2006-10-25, at 08:34 EDT, Philip Romanik wrote:
v.classname.tagname works fine. Thanks!
You meant v.constructor.tagname
classname is used by some of the components:
charts
incubator/inspector
lz/list
lzunit/lzunit.lzx
It's also used in some of the unit tests.
Phil
Hm. Oh, I see how that _used_ to work, because makeChild used to
look first in global to see if there was a class that had the name
and only then in ConstructorMap to see if the name was actually a
tag. This really only worked by sheer chance, because makeChild was
looking in global for user classes, not built-in classes (i.e., what
basegridcolum is trying to do was not part of the contract).
BUT. All is not lost. Luckily each class that is the class that
implements a tag has a new property `tagname`, so what you want is
`v.constructor.tagname`.
Let me know, but I think that should work.
IWBNI you grepped through the rest of the components just to make
sure there are no other uses of classname.
Thanks!