Closed excid3 closed 11 years ago
Just noticed this today working with RichMarker, the CoffeeScript syntax actually works, but the first option doesn't return the correct value:
For example if args.marker_anchor is [1, true]
args.marker_anchor
[1, true]
if args.marker_anchor? ? args.marker_anchor[1] else false #=> undefined
vs what we really wanted which is:
if args.marker_anchor? then args.marker_anchor[1] else false #=> true
Just noticed this today working with RichMarker, the CoffeeScript syntax actually works, but the first option doesn't return the correct value:
For example if
args.marker_anchor
is[1, true]
vs what we really wanted which is: