Permalink
Browse files

Set up reference to homecard in App.launch().

  • Loading branch information...
1 parent 771a066 commit 003e6b878c459429b4332fbdee9b806f3516bc89 @nelstrom committed Apr 4, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 public/app/app.js
  2. +1 −1 public/app/views/Viewport.js
View
1 public/app/app.js
@@ -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');
}
});
View
2 public/app/views/Viewport.js
@@ -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' },

0 comments on commit 003e6b8

Please sign in to comment.