Results 1 to 3 of 3

Thread: Error after the container's item was destroyed

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      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
    39,553
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •