-
25 Feb 2013 8:13 AM #1
Error after the container's item was destroyed
Error after the container's item was destroyed
When the item was added to the container (layout card) with animation, it is not possible to destroy it without error:
http://new.senchafiddle.com/#/oLPqA/
Items are removed from DOM, but container trying to set active item because its still in innerItems property of container.
To fix it I do next on deleting:
Code:if (container.activeItemAnimation) { container.activeItemAnimation.destroy(); container.activeItemAnimation = null; }
-
25 Feb 2013 10:03 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
This looks to be because you are trying to destroy a component while animating it. You would wait till after animation to destroy a component.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Feb 2013 12:04 AM #3
Yes, I know it. But I don't want to animate item when it is destroying. I want just destoy it without setting active enother item, which will be also destroyed.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote