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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar