Created
January 21, 2013 14:18
-
-
Save crobi/4586373 to your computer and use it in GitHub Desktop.
Element parse function in coffeescript
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
_parseBindMaterial : (parent, el) -> | |
for child in el.childNodes when child.nodeType is 1 | |
switch child.nodeName | |
when "technique_common" then @_parseBindMaterialTechnique parent, child | |
else @_reportUnexpectedChild el, child |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment