-
27 Jan 2010 8:44 AM #1
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.
Now try to find the same code on Ext 3.1.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; }
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.
-
27 Jan 2010 5:30 PM #2
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!


Reply With Quote