Hi Bruce,
can you please create a simple example, based on the Tree_7.html test
which shows the problem? The testcase should be runable from the
frontend/demo/source/html/test directory within your qooxdoo installation.
This may help us (and maybe yourself as well :-) finding what is wrong.
Bruce Bockius schrieb:
> Hi,
>
> I have a qx.ui.tree.Tree with a bunch of TreeFolders and TreeFiles.
> I have a qx.ui.form.Button with an execute event that should remove the
> selected tree item.
>
> btn.addEventListener("execute", function(e) {
> var vItem = objectTree.getManager().getSelectedItem();
> e.debug("about to call destroy on vItem="+vItem);
> if(vItem) {
> vItem.destroy();
> }
> });
>
> (objectTree is the qx.ui.tree.Tree)
> and the log looks like:
>
> 009193 DEBUG: qx.event.type.Event[1235]: about to call destroy on
> vItem=[object qx.ui.tree.TreeFolder]
> 009193 ERROR: qx.ui.form.Button[444]: Could not dispatch event of type
> "execute": TypeError - vItem.destroy is not a function
> at http://odm.navsys.com/GRIM/X/X/grim.jsp:420
> at qx.js:1
>
> As you can see from the debug entry, vItem is a qx.ui.tree.TreeFolder,
> but doesn't appear to have a "destroy" function??
>
> I pretty much copied this code out of Tree_7.html, where it works, and
> it is very much confusing me as to why it doesn't work in my code!
>
> Any suggestions? Thanks in advance! Also a general thank you to the
> developers who have created qooxdoo.
>
> -Bruce Bockius
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel