PDA

View Full Version : [FIXED][3.0] element.style-more.js boxWrap broken



Animal
8 Apr 2009, 6:17 AM
The code has:



boxWrap : function(cls){
cls = cls || 'x-box';
var el = Ext.get(this.insertHtml("beforeBegin", "<div class='" + cls + "'>" + EL.boxMarkup + "</div>")); //String.format('<div class="{0}">'+Ext.Element.boxMarkup+'</div>', cls)));
Ext.DomQuery.selectNode('.' + cls + '-mc', this.dom).dom.appendChild(this.dom);
return el;
},

It should be



boxWrap : function(cls){
cls = cls || 'x-box';
var el = Ext.get(this.insertHtml("beforeBegin", "<div class='" + cls + "'>" + String.format(Ext.Element.boxMarkup, cls) + "</div>"));
Ext.DomQuery.selectNode('.' + cls + '-mc', el.dom).appendChild(this.dom);
return el;
},

aconran
8 Apr 2009, 7:19 AM
Verified and committed as of rev 3614.