PDA

View Full Version : [FIXED] Beta3: TreeStore.removeChildren fires the wrong event.



vokiel
29 Feb 2012, 12:53 PM
Specifically:



if (wrapper.isVisible && wrapper.parent == parentWrapper) {
// TODO consider changing the event to allow firing just once
// index is always zero, since we are removing from first to last
fireEvent(new StoreRemoveEvent<M>(0, wrapper.getData()));
}


Yeah, if something in the Tree code tries to cast this as TreeStoreRemoveEvent, you'll get a class cast exception, just like I'm getting in Tree.onRemove. Ex:



for (final T root : treeStore.getRootItems()) {
treeStore.removeChildren(root);
loader.load(root);
}

Colin Alworth
1 Mar 2012, 12:43 PM
Thanks for the bug report - I'll follow up when a fix is available.

darrellmeyer
8 Mar 2012, 10:41 AM
Fixed in SVN.

WesleyMoy
28 Mar 2012, 5:05 PM
This bug has been fixed in the Ext GWT 3.0 Release Candidate. Please upgrade your copy of Ext GWT and try your test case again. While we're confident that we've addressed this issue, please reply if you notice any continued problems after upgrading. Again, thanks for taking the time to report this bug.