Would it be better to make the Debugger.__typeof interface public (maybe with a better name) and use that instead? That would make this code more future-proof.
Even better, should we make the inspector a standard part of the debugger? Make it a pane that you can open in the debug window? Integrate it with Debug.inspect? On 2010-05-31, at 13:36, André Bargull wrote: > Change 20100531-bargull-EWW by barg...@bargull02 on 2010-05-31 19:19:57 > in /home/anba/src/svn/openlaszlo/trunk > for http://svn.openlaszlo.org/openlaszlo/trunk > > Summary: some updates for the inspector to handle anonymous classes better > > Bugs Fixed: LPP-9060 (inspector: no proper tagname for anonymous classes and > debug window not hidden) > > Technical Reviewer: ptw > QA Reviewer: (pending) > > Details: > The inspector needs to display the proper tagname, "<anonymous>" won't help > anyone here. There are now two additional methods: > - getTagName(): returns constructor.tagname if defined, otherwise checks for > anonymous classes by inspecting the classname and in case of anon classes > returns the superclass' tagname > - getDisplayName(): returns getTagName() if not null, otherwise returns the > classname > > Two retrieve the superclass and the classname, separate definitions are > needed for swf8/dhtml and swf9+ > > Also updated switch clause to use the new tagname of the debugger. > > > Tests: > inspector-example works > > Files: > M lps/components/utils/diagnostic/inspector/inspector.lzx > > Changeset: > http://svn.openlaszlo.org/openlaszlo/patches/20100531-bargull-EWW.tar >
