Hybrid View

    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
    32
    Vote Rating
    1
    A.Tyshchyk is on a distinguished road

      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,582
    Vote Rating
    1136
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 Software Engineer
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    32
    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.

Thread Participants: 1