Search code examples
javascriptextjsextjs4

ExtJS name is undefined error


I have TypeError: name is undefined in an ExtJS Application. It happens on the following line:

win = Ext.create('Ext.window.Window',cfg);

Where cfg is a long list of properties. It only happens in certain situations, I was wondering if anyone has any ideas as to how I can track down the cause of the error in cfg? Perhaps using Firebug or some other debugging tool.


Solution

  • when the error occurs you should be able to view the call stack and see where is it failing both with firebug and chrome dev tools...