From 003e6b878c459429b4332fbdee9b806f3516bc89 Mon Sep 17 00:00:00 2001 From: Drew Neil Date: Mon, 4 Apr 2011 19:10:20 +0200 Subject: [PATCH] Set up reference to homecard in App.launch(). --- public/app/app.js | 1 + public/app/views/Viewport.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/app.js b/public/app/app.js index bcdf172..b64bc35 100644 --- a/public/app/app.js +++ b/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'); } }); diff --git a/public/app/views/Viewport.js b/public/app/views/Viewport.js index 43a3fc8..5d5edc0 100644 --- a/public/app/views/Viewport.js +++ b/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' },