Created
January 21, 2013 14:18
-
-
Save crobi/4586375 to your computer and use it in GitHub Desktop.
Element parse function in javascript
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
ColladaFile.prototype._parseBindMaterial = function(parent, el) { | |
for (var i = 0; i < el.childNodes.length; i++) { | |
var child = el.childNodes[i]; | |
if (child.nodeType === 1) { | |
switch (child.nodeName) { | |
case "technique_common": | |
this._parseBindMaterialTechnique(parent, child); | |
break; | |
default: | |
this._reportUnexpectedChild(el, child); | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment