View Full Version : [CLOSED][DUP]Ext.define should raise an Error when extending an unknown class

27 Apr 2011, 2:14 AM
When you changed "data.DataView" to "view.View" from b3 to final, I spent a lot of time looking for the reason, why my class was not available in the ClassManager:

Ext.define('MyApp.MyDataView', {
extend: 'Ext.data.DataView',//...

The Ext.define does not throw an Error "DataView not found", but when you try to Ext.create an instance of that class you get an error which says that "MyDataView" is unknown, which is really misleading... So I think Ext.define should really raise a proper exception in that case...


3 May 2011, 2:46 AM
I've added an extra note for this, related to: http://www.sencha.com/forum/showthread.php?131603-4.0.0-Defining-a-model-twice