lib/Ext/form/Panel.js
function(record) {
        var me = this;

        me._record = record;

        if (record && record.data) {
            me.setValues(record.data);
        }

        return this;
    }
function(record) {
        var me = this;

        me._record = record;

        if (record && record.data) {
            me.setValues(record.data);
        }

        return this;
    }
Loads matching fields from a model instance into this form.
@param {Ext.data.Model} record The model instance.
@return {Ext.form.Panel} This form.