Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    13
    hschaefer123 will become famous soon enough

      0  

    Default 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
    Code:
            listeners: [
                {
                    fn: 'onContainerInitialize',
                    event: 'initialize'
                }
            ]
    now i want to give my panel an id the code is changed to
    Code:
            listeners: [
                {
                    fn: 'onContainerInitialize',
                    event: 'initialize',
                    delegate: '#home'
                }
            ]
    but after using an id (itemId does not work too) the initial event is not fired!
    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

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    magbeat is on a distinguished road

      0  

    Default


    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:

    Code:
          
    {         fn: 'onSettingsViewInitialize',
            event: 'initialize',
            delegate: '#settingsView'
    }
    It seems that I always miss this event.
    If I manually delete the "delegate: ..." line the event is catched.

    This is rather annoying. Am I doing something wrong here?

Thread Participants: 2