Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created April 27, 2012 14:25
Show Gist options
  • Save freynaud/2509689 to your computer and use it in GitHub Desktop.
Save freynaud/2509689 to your computer and use it in GitHub Desktop.
this._loadTree = function(uiaElement) {
this.root = this._buildNode(uiaElement);
}
this._buildNode = function(uiaElement){
var node = new Node(uiaElement);
var uiaChildren = uiaElement.elements();
var size = uiaChildren.length;
log("building"+uiaElement+'children: '+uiaChildren.length);
for (i=0 ; i< size;i++){
var child = this._buildNode(uiaChildren[i]);
node.addChild(child);
}
return node;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment