When i added field with name "default" to model
Code:
Ext.define('ExampleModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'model_id', type: 'int' },
{ name: 'default' }
],
idProperty: 'model_id',
proxy: {
type: 'ajax',
api: {
create: '/catalog/attribute/create/',
read: '/catalog/attribute/',
update: '/catalog/attribute/update/',
destroy: '/catalog/attribute/delete/'
},
reader: {
type: 'json',
root: 'data'
}
}
});
i got error
Code:
missing variable name
default = fields.get("default"),ext-all-debug.js (line 46224, col 4)
http://*/assets/ext-4.0.7/ext-all-debug.js/eval/seq/22
Line -19149
after trying to load model with this field
Code:
Ext.ModelMgr.getModel('ExampleModel').load(1, {callback: function() {console.log(arguments);}});
i got error
Code:
TypeError: this.proxy is undefined
http://*/assets/ext-4.1.0-beta-2/ext-all-debug.js
Line 46224
//wbr