Skip to content

Commit

Permalink
Set up reference to homecard in App.launch().
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Apr 4, 2011
1 parent 771a066 commit 003e6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/app/app.js
Expand Up @@ -3,5 +3,6 @@ ToolbarDemo = new Ext.Application({

launch: function() {
this.views.viewport = new this.views.Viewport();
this.views.homecard = this.views.viewport.getComponent('home');
}
});
2 changes: 1 addition & 1 deletion public/app/views/Viewport.js
Expand Up @@ -9,7 +9,7 @@ ToolbarDemo.views.Viewport = Ext.extend(Ext.TabPanel, {
initComponent: function() {
Ext.apply(this, {
items: [
{ xtype: 'homecard' },
{ xtype: 'homecard', id: 'home' },
{ xtype: 'searchcard' },
{ xtype: 'actioncard' },
{ xtype: 'settingscard' },
Expand Down

0 comments on commit 003e6b8

Please sign in to comment.