Skip to content

Instantly share code, notes, and snippets.

@fflorent
Created June 16, 2011 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fflorent/1029328 to your computer and use it in GitHub Desktop.
Save fflorent/1029328 to your computer and use it in GitHub Desktop.
[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);
}
}
return ret;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment