I think that may be it; I've been trying to get rid of a bunch of deprecated calls and the listeners aren't working quite the way I've been expecting. I'll have to do some testing, but it did get thru the simple example after I short-circuited the listener a bit. Will try working thru the listener some more tomorrow and see if it's really dying there instead. Thanks for the tip.... Ken
On Tue, Dec 15, 2009 at 6:29 PM, Gene Amtower <[email protected]> wrote: > Ken, > > With a simple implementation of your example code in the Playground, this > works fine. > > What does the listener on menuCombo do in your code? Could the source of > the error be because the listener fires due to the removal of all the > entries? > > Gene > > > On Tue, 2009-12-15 at 18:16 -0500, Ken MacDonald wrote: > > Bug 3255 added for this. Gene - yes, it fails if I make the 2nd item 'var > xx2' also. > Ken > > On Tue, Dec 15, 2009 at 6:07 PM, Ken MacDonald <[email protected]> wrote: > > I've collapsed the test case to this: > > (menuCombo is the SelectBox() defined elsewhere) > var xx = new qx.ui.form.ListItem('foo', null); > this.menuCombo.add(xx); > xx = new qx.ui.form.ListItem('foo2', null); > this.menuCombo.add(xx); > this.menuCombo.removeAll(); // dies > > Ken > > > > On Tue, Dec 15, 2009 at 5:31 PM, Ken MacDonald <[email protected]> wrote: > > I have a form.SelectBox() and have added 2 items to the selection, added a > listener but I think that's about it for what's happened to that widget. I > think maybe I set some userData() on it, as well. > > On my form I have a 'reset' button, which I want to reload the app from the > DB, including the select box. So I've tried doing: > > selectbox.removeAll() to attempt to remove the two items I added so I can > add them again, but it blows up at that point, firebug goes off somewhere > (?) and I'm not sure where it ends up. I also tried removing the children > individually after doing a getChildren() and it fails on removal of the 2nd > child, not the first. > > I was just able to trace a bit farther, and it's hitting this in Widget.js: > > this.assertNotUndefined(child); > 2134 this.assertIdentical(child.getLayoutParent(), this, "Remove Error: " + > child + " is not a child of this widget!"); > > Is this a bug in remove()? It should not be trying to remove things it > doesn't have, or alternately it's making a mistake thinking that this child > is not one of it's children, since the child was just returned by > getChildren(). > Ken > > > > > > ------------------------------------------------------------------------------This > SF.Net email is sponsored by the Verizon Developer CommunityTake advantage > of Verizon's best-in-class app development supportA streamlined, 14 day to > market process makes app distribution fast and easyJoin now and get one step > closer to millions of Verizon customershttp://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
