1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    9
    Vote Rating
    0
    geovane.oliveira is on a distinguished road

      0  

    Post Ext 3.1 Button - 'id' on Table

    Ext 3.1 Button - 'id' on Table


    Hi,

    I found a smal difference between 3.0.3 version and 3.1 version of ext and I would like to know if it is a missing point, an error or is a change to improve something.

    Iam talking about the Ext.Button ID property.

    First on Ext 3.0.3:
    Look at initButtonEl method on Ext.Button and will see the code below.

    Code:
            if(this.id){
                var d = this.el.dom,
                    c = Ext.Element.cache;
                    
                delete c[d.id];
                d.id = this.el.id = this.id;
                c[d.id] = this.el;
            }
    Now try to find the same code on Ext 3.1.

    Any reasons for that?
    With this change my buttons have no id anymore on the table element. I'm not saying this is wrong, but I had some handling on my components using this feature.

    Tks.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,843
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It was for the sake of consistency. The common approach for the framework is that the outer-most element gets the identifier of the component.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1