Permalink
Browse files

Remove initComponent() function from viewport class.

  • Loading branch information...
1 parent 6aca948 commit f0068b2f9768fbe7abd094e54b9ad98a80da1470 @nelstrom committed Apr 5, 2011
Showing with 7 additions and 12 deletions.
  1. +7 −12 public/app/views/Viewport.js
View
19 public/app/views/Viewport.js
@@ -6,16 +6,11 @@ ToolbarDemo.views.Viewport = Ext.extend(Ext.TabPanel, {
pack: 'center'
}
},
- initComponent: function() {
- Ext.apply(this, {
- items: [
- { xtype: 'homecard', id: 'home' },
- { xtype: 'searchcard' },
- { xtype: 'actioncard' },
- { xtype: 'settingscard' },
- { xtype: 'morecard' }
- ]
- });
- ToolbarDemo.views.Viewport.superclass.initComponent.apply(this, arguments);
- }
+ items: [
+ { xtype: 'homecard', id: 'home' },
+ { xtype: 'searchcard' },
+ { xtype: 'actioncard' },
+ { xtype: 'settingscard' },
+ { xtype: 'morecard' }
+ ]
});

0 comments on commit f0068b2

Please sign in to comment.