reverting change

This commit is contained in:
Jeremy Ashkenas 2010-01-17 10:28:04 -05:00
parent d7d9cb8d28
commit e72ef1a61a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module CoffeeScript
@indent = o[:indent]
top = self.top_sensitive? ? @options[:top] : @options.delete(:top)
closure = statement? && !statement_only? && !top && !@options[:return] && !self.is_a?(CommentNode)
closure &&= !contains? {|n| n.is_a?(ReturnNode) }
closure &&= !contains? {|n| n.statement_only? }
closure ? compile_closure(@options) : compile_node(@options)
end