more underscore and bugfix edits to code generation

This commit is contained in:
Jeremy Ashkenas
2009-12-26 22:24:21 -08:00
parent d7dd18b476
commit 3ee4e98ccc
2 changed files with 38 additions and 46 deletions

View File

@@ -95,6 +95,7 @@ module CoffeeScript
if node.statement? || node.custom_return?
"#{o[:indent]}#{node.compile(o)}#{node.line_ending}"
else
o.delete(:return)
"#{o[:indent]}return #{node.compile(o)}#{node.line_ending}"
end
elsif o[:assign]