I have the following model:
Code:
Ext.define('MyApp.model.MyModel', {
requires: [
'Ext.data.field.Date'
],
statics: {
parseDate: function() {
return strDate === '0001-01-01' ? null : new Date(strDate);
}
},
convertOnSet: false,
fields: [
{
type: 'date',
convert: function(v, rec) {
return self.parseDate(v);
}
}
]
});
The preview works fine on my browser.
Yet the architect keeps logging the following error:
Scit_DesignView_Bug.jpg
Until I either go mad or the architect starts lagging so much that it freezes and I have to close it. (Currently the error is shown 1500 times so it's still running fine!)
How can I make it understand that when I write "self" I refer to… well… self? (!…)
Running versions:
Thanks in advance