mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
CoffeeScript 0.6.2
This commit is contained in:
@@ -920,7 +920,9 @@ children SplatNode, 'name'
|
||||
exports.WhileNode: class WhileNode extends BaseNode
|
||||
|
||||
constructor: (condition, opts) ->
|
||||
condition: new OpNode('!', condition) if opts and opts.invert
|
||||
if opts and opts.invert
|
||||
condition: new ParentheticalNode condition if condition instanceof OpNode
|
||||
condition: new OpNode('!', condition)
|
||||
@condition: condition
|
||||
@guard: opts and opts.guard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user