Created
April 27, 2012 14:25
-
-
Save freynaud/2509689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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