On 2009-11-15, at 06:19, Raju Bitter wrote:
> In an old app OL 3.4 app I used the following code:
>
> var tabs = parent.searchSubnodes('classname', 'CustomTabs');
>
> But in 4.0.18 (Webtop) that doesn't work any more. What happened to the
> concept of being able to access the name of the class through
> nodeObject.classname? That worked in 3.3, and in 4.0.18 (Webtop) it returns
> "Object", which is not very helpful. By looking at the source code for LzNode
> I saw that it's possible to access the real classname through
> object.constructor.classname.
>
> Is that a bug, or a feature?
You want to update your code to use 'tagname' instead of 'classname'. This was
part of the attempt to make the LFC and user classes uniformly accessible. For
all tags `t` in LZX:
lz[t].tagname === t