[CLOSED] Bug on the callout component

  1. #1

    [CLOSED] Bug on the callout component

    Hello support

    Great job on the callout component, really like, it looks nice and very easy to use :-)

    On to the subject :-)

    There is a bug on the callout component if you create a callout and what set the property "CloseOnOutsideClickand" to true or have set the trigger to "hover" and then attach it on a button or any other widget.

    At first the callout works as entended, it shows and looks nice.. :-)

    but when you destroy the button or widget the callout does get destroyed
    but the OnDestroy event on the callout fails

    onDestroy:function(){if(this.trigger=="hover"||this.closeOnOutsideClick){Ext.getDoc().un('mousedown',me.onDocMouseDown,this);}
    The error i get is "me" is undefined

    Best regards

    Akpenob
    Last edited by Daniil; Mar 06, 2014 at 10:32 AM. Reason: [CLOSED]
  2. #2
    Thanks for the report. Fixed in SVN
    Here is the fix for who cannot update
    Ext.net.Callout.override({
        onDestroy: function () {
            if (this.trigger == "hover" || this.closeOnOutsideClick) {            Ext.getDoc().un('mousedown', this.onDocMouseDown, this);
            }
    
    
            if (!this.destroyFromCmp && this.calloutOwner && this.calloutOwner.callouts) {
                Ext.Array.remove(this.calloutOwner.callouts, this);
            }
            Ext.Component.prototype.onDestroy.call(this);
        }
    });
  3. #3
    Thank you

    Vladimir

    Keep up the good work :-)

Similar Threads

  1. Replies: 2
    Last Post: Jun 27, 2013, 10:18 PM
  2. [CLOSED] FiltersFeature component
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 19, 2013, 11:40 AM
  3. Replies: 8
    Last Post: Feb 06, 2013, 6:27 PM
  4. Add Ext JavaScript Component to Component
    By geoffrey.mcgill in forum Examples and Extras
    Replies: 3
    Last Post: Mar 10, 2010, 12:38 PM
  5. Replies: 1
    Last Post: May 22, 2009, 7:38 AM

Tags for this Thread

Posting Permissions