fixed non-recursive traverse() for CodeNode

This commit is contained in:
gfxmonk
2010-03-13 23:49:51 +11:00
parent e47bea34d5
commit 5809a1637f
2 changed files with 2 additions and 2 deletions

View File

@@ -722,7 +722,7 @@ exports.CodeNode: class CodeNode extends BaseNode
# Custom `traverse` implementation that uses the `real_children`.
traverse: (block) ->
block this
block(child) for child in @real_children()
child.traverse block for child in @real_children()
toString: (idt) ->
idt ||= ''