Results 1 to 2 of 2

Thread: Why Ext.fireEvent doesn't check if there's a listener?

  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,339
    Answers
    20

    Default Answered: Why Ext.fireEvent doesn't check if there's a listener?

    Code:
    Ext.define('Ext.GlobalEvents', {
        extend: 'Ext.mixin.Observable',
        ...
     
    }, function(GlobalEvents) {
        ...
        Ext.fireEvent = function() {
            return GlobalEvents.fireEvent.apply(GlobalEvents, arguments); // <-- First check if there's a listener (?)
        };
    });

  2. I guess because the fireEvent will call fireEventArgs, and here is where the checking occurs.

  3. #2

    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    316
    Answers
    64

    Default

    I guess because the fireEvent will call fireEventArgs, and here is where the checking occurs.

Similar Threads

  1. Ext.util.Observable fireEvent() method and listener parameters
    By cellinger in forum Sencha Ext JS Q&A
    Replies: 3
    Last Post: 3 Apr 2012, 10:02 AM
  2. [3.3] fireEvent("check"... not working
    By twalker916 in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 14 Jun 2011, 12:50 PM
  3. ComboBox FireEvent Doesn't Work
    By hornfrog in forum Ext: Discussion
    Replies: 1
    Last Post: 11 Jun 2011, 6:44 PM
  4. fireEvent doesn't work in Firefox
    By smysore in forum Sencha Ext JS Q&A
    Replies: 2
    Last Post: 22 May 2009, 12:06 PM
  5. Ext listener and fireEvent
    By J.B in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 31 Mar 2008, 10:10 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
  •