Results 1 to 4 of 4

Thread: Confusion in documentation of Ext.Component.destroy

  1. #1
    Sencha User
    Join Date
    Jun 2017
    Posts
    3
    Vote Rating
    0
      0  

    Default Confusion in documentation of Ext.Component.destroy

    It the docs, it says:
    Destroys the Component. This method must not be overridden because Component destruction sequence is conditional; if a beforedestroy handler returns false we must abort destruction.
    To add extra functionality to destruction time in a subclass, override the doDestroy method.
    Source: http://docs.sencha.com/extjs/6.2.0/c...method-destroy


    But doDestroy is private. Source -> http://docs.sencha.com/extjs/6.2.0/c...thod-doDestroy

    So how can we override a private method of a parent class?

    I might miss something here, but I guess the documentation is wrong.

  2. #2
    Sencha User
    Join Date
    Jul 2017
    Posts
    39
    Answers
    5
    Vote Rating
    6
      1  

    Default

    There does seem to be some discrepancy considering the modern version of the method is listed as public.

  3. #3
    Sencha User
    Join Date
    Jun 2017
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Indeed. It might be an error. Hope some Sencha moderator sees this thread and updates the docs.

  4. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,319
    Answers
    19
    Vote Rating
    588
      1  

    Default

    There's an open ticket for this doc issue.

Similar Threads

  1. When to destroy a component?
    By johnnietheblack in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 17 May 2012, 6:18 AM
  2. [FIXED] Component ID is forgotten after component destroy and re-create
    By gubarez in forum Sencha Touch 2.x: Bugs
    Replies: 5
    Last Post: 26 Jan 2012, 9:14 AM
  3. destroy component in 1.0
    By jeffiel in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 4 May 2007, 10:02 AM

Tags for this Thread

Posting Permissions

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