Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / form / fieldcontainer.js
index 6452dae..e8acef7 100644 (file)
@@ -201,7 +201,7 @@ Ext.onReady(function() {
             {
                 text   : 'Load test data',
                 handler: function() {
-                    this.up('form').getForm().loadRecord(Ext.ModelManager.create({
+                    this.up('form').getForm().loadRecord(Ext.create('Employee', {
                         'email'    : 'abe@sencha.com',
                         'title'    : 'mr',
                         'firstName': 'Abraham',
@@ -213,7 +213,7 @@ Ext.onReady(function() {
                         'phone-3'  : '4567',
                         'hours'    : 7,
                         'minutes'  : 15
-                    }, 'Employee'));
+                    }));
                 }
             },
             {