fixed non-recursive traverse() for CodeNode

This commit is contained in:
gfxmonk
2010-03-13 23:49:51 +11:00
committed by Jeremy Ashkenas
parent 3fed9761a6
commit b269884f8d
2 changed files with 2 additions and 2 deletions

View File

@@ -723,7 +723,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 ||= ''