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


    Default 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
    Notts/Redwood City
    Vote Rating
    Animal will become famous soon enough



    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