Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    25
    Vote Rating
    1
    A.Tyshchyk is on a distinguished road

      0  

    Default 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;
    }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,684
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    25
    Vote Rating
    1
    A.Tyshchyk is on a distinguished road

      0  

    Default


    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.