1. #1
    Ext JS Premium Member
    Join Date
    Feb 2008
    Posts
    51
    Vote Rating
    0
    noamway is on a distinguished road

      0  

    Default Question about the performance of the listeners and the handler

    Question about the performance of the listeners and the handler


    Hi,

    I like to know, if I need a click event what do I need to use. the listeners or the handler?

    Does the listeners take more performance?

    Thanks,
    Noam

  2. #2
    Sencha User laurentParis's Avatar
    Join Date
    Aug 2010
    Location
    paris
    Posts
    246
    Vote Rating
    2
    laurentParis is on a distinguished road

      0  

    Default


    handler is linked to button//menu
    if you're looking on source code you can found the answer of your "question" :
    PHP Code:
        // private method of Ext.Button = Ext.extend(Ext.BoxComponent,...
        
    onClick : function(e){
                .......
                
    this.fireEvent('click'thise);
                if(
    this.handler){
                    
    //this.el.removeClass('x-btn-over');
                    
    this.handler.call(this.scope || thisthise);
                }
            }
        }, 
    I hope that this source code give to you some comprehension information !
    For me, the only good information that have some interest, is that click event is called before handler method ))

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2008
    Posts
    51
    Vote Rating
    0
    noamway is on a distinguished road

      0  

    Default


    I'm sorry for the misunderstanding, I have to be sure.
    The example you give is proving that handler is better, right (when we lisen to 'click' event)?

Similar Threads

  1. Any Check Item handler/listeners that fire after checked=true?
    By Daz in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 11 Jun 2010, 7:39 AM
  2. What's the difference between handler: and listeners:
    By borg in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 4 Dec 2009, 8:44 AM
  3. Observable listeners handler not fired
    By StevenJ in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 19 May 2009, 11:48 PM
  4. Question about handler and listeners for a toolbar button
    By dddu88 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 14 Mar 2008, 6:33 AM
  5. Question about listeners in 1.0
    By j555 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Mar 2007, 5:39 PM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar