1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    3
    Vote Rating
    0
    alex1981 is on a distinguished road

      0  

    Default Listeners problem extending a class

    Listeners problem extending a class


    Hi everybody, I have a little problem while I'm trying to extend a class. What I've done was add a listener directly into the extended class (and it's working quite well). Problems comes when I istantiate that class (the extended one) and I add another listener (different from the one coded in the extension). Note that inside the extended class I use Ext.apply to "merge" two definition of listener object but the coded listeners seems to disappear ( In firebug i can see listeners object containing all the coded listeners + the new defined while the istantiation).

    Waiting for your help

    Thanks in advance

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Don't "merge" anything.

    Add listeners.

    Use the addListener (or "on") method

Similar Threads

  1. Add listeners to preconfigured class
    By michiel in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 5 Jul 2010, 1:14 AM
  2. Problem extending class: Root is undefined
    By Scorpie in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Oct 2009, 5:54 AM
  3. Help extending a class
    By patrosmania in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Oct 2008, 1:21 PM
  4. Extending a class
    By bkraut in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 16 Aug 2008, 10:49 PM

Thread Participants: 1

Tags for this Thread

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..."