Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    handilion is on a distinguished road

      0  

    Default ExtJs Project issue: Uncaught TypeError: Cannot call method 'on' of undefined

    ExtJs Project issue: Uncaught TypeError: Cannot call method 'on' of undefined


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.02a
    Browser versions tested against:
    • Google Chrome 17.0.963.46 m
    Description:
    • Building a simple app with 2 grid panels with each one reference to a different store that reads json data.
    Steps to reproduce the problem:
    • The description should suffice.
    The result that was expected:
    • Should show the 2 grid panels with the data got loaded
    The result that occurs instead:
    • Uncaught TypeError: Cannot call method 'on' of undefined for this line item.on(ename, fn, scope, options); inside addManagedListener function.
    Operating System:
    • Win XP Professional Version 2002 SP3

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    The description does not suffice. Could you please provide us a sample project?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    handilion is on a distinguished road

      0  

    Default


    Well... I think it's something that I did on my end.
    I just created a completely brand new Ext js project to see whether I will get this error but it actually works fine.

    No worries.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    Great. THat error sounds like you were trying to setup an event listener before the thing you were trying to set it up on was created.
    Aaron Conran
    @aconran
    Sencha Architect Development Team