1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
    actonwang is on a distinguished road

      0  

    Default listener only executed once

    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
    actonwang is on a distinguished road

      0  

    Default


    I got right after i posted thx for your looking.

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User =NR='s Avatar
    Join Date
    Mar 2013
    Location
    Singapore
    Posts
    102
    Vote Rating
    -1
    =NR= has a little shameless behaviour in the past

      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

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi