PDA

View Full Version : [CLOSED] ExtJs Project issue: Uncaught TypeError: Cannot call method 'on' of undefined



handilion
10 Feb 2012, 4:14 PM
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

aconran
10 Feb 2012, 4:32 PM
The description does not suffice. Could you please provide us a sample project?

handilion
10 Feb 2012, 4:57 PM
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.

aconran
10 Feb 2012, 5:02 PM
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.