using '== null' to check for soaked accessor chains instead of '== undefined' -- shorter, and slightly safer

This commit is contained in:
Jeremy Ashkenas
2010-02-18 21:04:41 -05:00
parent a278d8f018
commit 0270e48a01
2 changed files with 2 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ statement ReturnNode, true
ValueNode: exports.ValueNode: inherit Node, {
type: 'Value'
SOAK: " == undefined ? undefined : "
SOAK: " == null ? undefined : "
constructor: (base, properties) ->
@children: flatten [@base: base, @properties: (properties or [])]