PDA

View Full Version : legacy/compat.js - getChildrenByTagName



wioota
23 Apr 2007, 10:34 PM
The function should actually be this I think :


// replaced with more powerful selector functions
/**
* Gets an array of child Ext.Element objects by tag name
* @param {String} tagName
* @return {Array} The children
*/
getChildrenByTagName : function(tagName){

var children = this.dom.getElementsByTagName(tagName);
var len = children.length;
var ce = new Array(len);
for(var i = 0; i < len; ++i){
ce[i] = Ext.get(children[i], true);
}
return ce;
},

tryanDLS
24 Apr 2007, 9:22 AM
Why do you need this? Use DomQuery.select.