Results 1 to 2 of 2

Thread: Component - incorrect doDestroy method documentation

    You found a bug! We've classified it as EXTJS-22197 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,372

    Default Component - incorrect doDestroy method documentation

    ext-6.2.0.773

    The documentation of the doDestroy method is incorrect. This method cannot be overridden because it's a private method. I think the doc should instead say "override the onDestroy method".
    Code:
    Ext.define('Ext.Component', {
        ...
         * To add extra functionality to destruction time in a subclass, override the
         * {@link #doDestroy} method.
         *
         * @since 1.1.0
         */
        destroy: function() {
            var me = this;
    
    
            if (!me.hasListeners.beforedestroy || me.fireEvent('beforedestroy', me) !== false) {
                // isDestroying added for compat reasons
                me.isDestroying = me.destroying = true;
                
                me.doDestroy();
        ...
    
    
        * @private
         * @since 6.2.0
         */
        doDestroy: function() {
        ...

  2. #2
    Sencha - Ext JS Dev Team nohuhu's Avatar
    Join Date
    Jun 2011
    Location
    Redwood coast
    Posts
    402

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 1
    Last Post: 23 Sep 2014, 2:45 PM
  2. Replies: 2
    Last Post: 3 Dec 2012, 10:21 PM
  3. XType Documentation Incorrect
    By benwhite in forum Sencha Touch 1.x: Bugs
    Replies: 0
    Last Post: 17 Mar 2011, 11:12 AM
  4. Replies: 4
    Last Post: 30 Jun 2010, 8:27 PM
  5. Documentation incorrect
    By azara in forum Ext GWT: Bugs (2.x)
    Replies: 0
    Last Post: 5 Apr 2010, 9:25 AM

Posting Permissions

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