Results 1 to 2 of 2

Thread: Ext 3.1 Button - 'id' on Table

  1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    9
    Vote Rating
    0
      0  

    Post 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
    18,608
    Vote Rating
    874
      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
    Twitter - @evantrimboli

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •