merging in satyr's fix for #653

This commit is contained in:
Jeremy Ashkenas
2010-09-27 22:17:46 -04:00
parent a3adc9c1b6
commit 8568441221
2 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
# Import the helpers we plan to use.
{compact, flatten, merge, del, include, indexOf, starts, ends} = require './helpers'
# Constant functions for nodes that don't need customization.
YES = -> yes
NO = -> no
@@ -62,7 +63,7 @@ exports.BaseNode = class BaseNode
# by assigning it to a temporary variable.
compileReference: (o, options) ->
options or= {}
pair = unless @isComplex()
pair = if not @isComplex()
[this, this]
else if this instanceof ValueNode and options.assignment
this.cacheIndexes(o)