Thank you for reporting this bug. We will make it our priority to review this report.
Synchronously loading validators
Synchronously loading validators
Hello,
When I use validators to my model, I have some synchronously loading warnings.
An example:
Code:
Ext.define('ModelName', {
"extend": "Ext.data.Model",
"fields": [
{
"type": "string",
"name": "name"
},
{
"type": "string",
"name": "identifier"
}
],
"validators": {
"identifier": [
{
"type": "presence"
},
{
"max": 255,
"type": "length"
}
],
"name": [
{
"type": "presence"
},
{
"max": 255,
"type": "length"
}
]
}
});Code:
[W] [Ext.Loader] Synchronously loading 'Ext.data.validator.Presence'; consider adding Ext.require('Ext.data.validator.Presence') above Ext.onReady
[W] [Ext.Loader] Synchronously loading 'Ext.data.validator.Length'; consider adding Ext.require('Ext.data.validator.Length') above Ext.onReady
[W] [Ext.Loader] Synchronously loading 'Ext.data.validator.Format'; consider adding Ext.require('Ext.data.validator.Format') above Ext.onReady
[W] [Ext.Loader] Synchronously loading 'Ext.data.validator.Email'; consider adding Ext.require('Ext.data.validator.Email') above Ext.onReady
[W] [Ext.Loader] Synchronously loading 'Ext.data.validator.Inclusion'; consider adding Ext.require('Ext.data.validator.Inclusion') above Ext.onReady
Validators aren't found during the build process ?
Should I add the requires manually ?Thanks
Romain
mercredi 2 juillet 2014
Synchronously loading validators
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire