http://ift.tt/1pKQ8Kn

Code:



Ext.define('MyApp.model.Person', {
extend: 'Ext.data.Model',
fields: [
{
name: 'first',
type: 'string',
mapping: 'firstName'
}
]
});


var record = Ext.create('MyApp.model.Person', {firstName: "Jackie"});


if(record.get('first') === '') {
Ext.Msg.alert('Oh No!', 'Who am I?');
}

I'm getting a blank when I execute record.get('first');