PDA

View Full Version : [FIXED] Cannot call method 'on' of undefined



martinrame
17 Feb 2012, 4:15 PM
Hi, I think this is a bug. When I define an Ext.grid.Panel with a store, and the store has a different value in the fields "userClassName and storeId" I got "Cannot call method 'on' of undefined" in Chrome, or "Item is undefined" on FireBug.

So, storeId and userClassName must be equal. Shouldn't this be addressed correctly in Designer?.

jjohnston
22 Feb 2012, 10:54 AM
Thanks for reporting this. It appears to be a quirk of Ext4's MVC layer -- stores declared in the Application or in a Controller are registered in the store manager by their class name rather than their store id.

We definitely need to handle this in Designer in some way, whether that is always syncing storeId to the userClassName, switching components to use the userClassName in their store references, or some other solution. I will open a ticket for us to figure this out.

This is not a problem in Touch 2.0, by the way.

aconran
4 Apr 2012, 10:45 PM
Starting in build #353, we will automatically update stores so that this doesn't happen.