Permalink
Browse files

bug fix: module root comments were broken

  • Loading branch information...
1 parent a44c66c commit 8e67c5bf581dbce195e9e15cf46dbc409c9e7eae @ddlsmurf ddlsmurf committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/helpers.coffee
View
@@ -16,7 +16,7 @@ exports.getNodes = (script) ->
root_node = coffeescript.nodes(script)
root_node.traverseChildren false, (node) ->
node.type = node.constructor.name
- return [root_node].concat(root_node.expressions)
+ return [].concat(root_node.expressions, root_node)
exports.getFullName = (variable) ->
###

0 comments on commit 8e67c5b

Please sign in to comment.