Results 1 to 4 of 4

Thread: listener config does not invoke the method if function is given as "fn" option

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1121 in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    240
    Vote Rating
    0
      0  

    Default listener config does not invoke the method if function is given as "fn" option

    The listener in the following case is not invoked:

    Code:
    {
      xtype: 'button',
      listeners: {
        tap: {
          fn: function() {
                  alert('Clicked');
              }
        }
      }
    }
    But it is invoked if you leave out "fn" and directly give the function for the "tap" option.

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    This has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Mar 2009
    Posts
    240
    Vote Rating
    0
      0  

    Default

    Thanks Jamie!!!

Posting Permissions

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