taka_2
30 Jul 2010, 6:51 AM
// Set up a model to use in our Store
Ext.regModel('User', {
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'}
]
});
var user1 = Ext.ModelMgr.create({firstName: 'hoge1', lastName: 'moge1'}, 'User');
document.write(user1.firstName);
Running the code using Sencha Touch 0.91, "hoge1" will be displayed.
But running the code using Sencha Touch 0.92, "undefined" will be displayed.
Appears to have failed to initialize the model.
Ext.regModel('User', {
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'}
]
});
var user1 = Ext.ModelMgr.create({firstName: 'hoge1', lastName: 'moge1'}, 'User');
document.write(user1.firstName);
Running the code using Sencha Touch 0.91, "hoge1" will be displayed.
But running the code using Sencha Touch 0.92, "undefined" will be displayed.
Appears to have failed to initialize the model.