Skip to content

Instantly share code, notes, and snippets.

@fflorent
fflorent / oryx.getChildById.fix.js
Created June 16, 2011 14:30
[ORYX] Hack to Fix getChildById
ORYX.Core.UIObject.prototype.getChildById = function(id, deep) {
var i, child, ret;
for(var i = 0; i < this.children.length && ret === undefined; i++){
child = this.children[i];
if(child.getId() === id)
ret = child;
else if(deep){
ret = child.getChildById(id, deep);
}
}