-
10 Oct 2012 5:44 PM #1
Unanswered: Double views are being created
Unanswered: Double views are being created
Hello Everyone,
So I am back at using ST2. I have a toolbar which I change the title on, however I have noticed that during the execution of my applications, the title isn't changing. When I search for the component using the ComponentQuery I see this.
Ext.ComponentQuery.query('informationview toolbar')
[Ext.apply.create.Class, Ext.apply.create.Class ]
which means there are two objects that match the given selector when there should only be one ! One of the views has its hidden param set to true, while the other one is in the main view.
Does anyone know where this doppleganger view could be coming from, and how can I kill it. At first I thought it was my refs, but I tried setting them to autoCreate: false to no avail.
-
10 Oct 2012 6:27 PM #2
Could you give some code?
What is 'informationview'?I write English by translator.
-
10 Oct 2012 8:17 PM #3
Information is just a view. Here is some code.
Profile
and here is the app.jsCode:Ext.define('Ss.profile.Tablet', { extend:'Ext.app.Profile', config:{ name:'tablet', namespace:'tablet', controllers:['MainController'], views:['Main'] }, isActive:function () { return Ext.os.is.Tablet || Ext.os.is.Desktop; }, launch:function () { Ext.create('Ss.view.tablet.Main', {fullscreen: true}); } });
Code:Ext.Loader.setConfig({ enabled: true }); Ext.application({ models: [ 'NavigationModel' ], stores: [ 'NavigationModelStore', 'StateLawStore' ], views: [ 'StateSearchView', 'MyToolbar', 'TiledNavigationView', 'LawNavigationStack', 'NavigationList', 'AutocompleteField', 'tablet.Main' ], name: 'Ss', controllers: [ 'MainViewController', 'StateSearchController', 'InformationController', 'TiledNavigationController', 'NavigationListController' ], profiles:['Tablet'] });
-
11 Oct 2012 11:11 AM #4
I was being an . Said view was being instantiated somewhere else down the stack.


Reply With Quote