1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    boagerard is on a distinguished road

      0  

    Default Error "cls.override is not a function" when extending Ext.data.Model

    Error "cls.override is not a function" when extending Ext.data.Model


    Hello all,

    I would like to extend Ext.data.Model. Here is the code:

    Ext.define('ContactPerson', {
    extend : 'Ext.data.Model',
    fields : [ {
    name : 'emailAddress',
    type : 'string'
    }
    , {
    name : 'firstName',
    type : 'string'
    }, {
    name: 'id',
    type : 'string'
    }, {
    name : 'surname',
    type : 'string'
    }, {
    name : 'telephoneNumber',
    type : 'string'
    }
    ]
    });

    The problem is that, when I look in Firebug console, I have the error :

    cls.override is not a function
    [Break On This Error] return cls.override(overrides);
    ext-all-dev.js (line 246)

    Could you please tell me why it occurs?

    Thank you in advance!

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    boagerard is on a distinguished road

      0  

    Default


    I also used the example from Ext.data.Model, i.e.

    Ext.define('User', {
    extend: 'Ext.data.Model',
    fields: [
    {name: 'name', type: 'string'},
    {name: 'age', type: 'int'},
    {name: 'phone', type: 'string'},
    {name: 'alive', type: 'boolean', defaultValue: true}
    ],

    changeName: function() {
    var oldName = this.get('name'),
    newName = oldName + " The Barbarian";

    this.set('name', newName);
    }
    });

    I still have the same error in the Firebug console. Did I miss something?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    boagerard is on a distinguished road

      0  

    Default


    After debugging in Firebug, it seems that Ext.util.Animate generates this error . Any idea, please?

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi