-
24 Apr 2012 4:44 AM #1
events not worling with delegate #id
events not worling with delegate #id
If a want to attach a 'initialize' event to a panel this works quite well by adding
now i want to give my panel an id the code is changed toCode:listeners: [ { fn: 'onContainerInitialize', event: 'initialize' } ]
but after using an id (itemId does not work too) the initial event is not fired!Code:listeners: [ { fn: 'onContainerInitialize', event: 'initialize', delegate: '#home' } ]
Removing id removes delegate to work on again.
I am using SDK 2.0.1-rc
Is this a bug in SDK or inside Architect?
I also want to set scope: this config but scope is not available?!?
Trying to add scope with "ADD" button crashes Architect!
Cheers Holger
-
24 Apr 2012 10:50 AM #2
I think whats happening here is when you use event delegation, that its already too late and the event has fired. We'll have to dig into it further.
Adding scope is not supporting and perhaps we need to add it to a specific exclude list so that you cannot add it.Aaron Conran
@aconran
Sencha Architect Development Team
-
29 Apr 2012 1:54 PM #3
I have a similar problem with the "initialize" event. (?)
The problem is, that I promoted a subcomponent to a class ("settingsView").
As I then added the "initialize" event to the promoted class. Now Sencha Architect auto-generates the following code:
It seems that I always miss this event.Code:{ fn: 'onSettingsViewInitialize', event: 'initialize', delegate: '#settingsView' }
If I manually delete the "delegate: ..." line the event is catched.
This is rather annoying. Am I doing something wrong here?
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote