(cosmetic) removing occasional extra linebreaks in JS generated from class definitions.

This commit is contained in:
Jeremy Ashkenas
2010-07-12 22:51:10 -04:00
parent 534e2a25de
commit c3410e722e
2 changed files with 8 additions and 8 deletions

View File

@@ -710,10 +710,10 @@ exports.ClassNode: class ClassNode extends BaseNode
props.push prop
constructor.body.unshift literal "$me = this" if me
construct: @idt() + (new AssignNode(@variable, constructor)).compile(merge o, {sharedScope: constScope}) + ';\n'
props: if props.empty() then '' else props.compile(o) + '\n'
extension: if extension then @idt() + extension.compile(o) + ';\n' else ''
returns: if @returns then new ReturnNode(@variable).compile(o) else ''
construct: @idt() + (new AssignNode(@variable, constructor)).compile(merge o, {sharedScope: constScope}) + ';'
props: if !props.empty() then '\n' + props.compile(o) else ''
extension: if extension then '\n' + @idt() + extension.compile(o) + ';' else ''
returns: if @returns then '\n' + new ReturnNode(@variable).compile(o) else ''
"$construct$extension$props$returns"
#### AssignNode