Results 1 to 2 of 2

Thread: Listeners problem extending a class

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Vote Rating

    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
    Bédoin/Redwood City
    Vote Rating


    Don't "merge" anything.

    Add listeners.

    Use the addListener (or "on") method
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

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

Tags for this Thread

Posting Permissions

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