Results 1 to 4 of 4

Thread: listener only executed once

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
      0  

    Default listener only executed once

    how do I do to ensure my listener only executed once for certain event?

    thx
    Acton

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
      0  

    Default

    I got right after i posted thx for your looking.

  3. #3
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      1  

    Default

    You should post your solution when you figure it out in case someone searches and comes across your post. So here is a solution:

    Syntax:
    Code:
    cmp.on(event, function, scope, options);
    Example:
    Code:
    cmp.on("click", myFunc, this, { single: true });
    This will automatically remove the listener when it executes.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #4
    Sencha User =NR='s Avatar
    Join Date
    Mar 2013
    Location
    Singapore
    Posts
    115
    Vote Rating
    -1
      0  

    Default

    wrong thread..

    *please delete this post

Similar Threads

  1. File specified in dataUrl: is not being executed
    By coplaxi in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Jul 2009, 12:05 PM
  2. [SOLVED]Javascript not being executed in Ext JS 3.0
    By Waldo in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 1 Jul 2009, 11:17 PM
  3. Always 'Failure' is executed
    By bluesapphire in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 7 Jul 2008, 8:47 AM
  4. tabs, setURL and js not executed
    By falz in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 13 Dec 2007, 9:43 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
  •