Skip to content

Instantly share code, notes, and snippets.

@crobi
Created January 21, 2013 14:18
Show Gist options
  • Save crobi/4586373 to your computer and use it in GitHub Desktop.
Save crobi/4586373 to your computer and use it in GitHub Desktop.
Element parse function in coffeescript
_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