apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

marker_anchor options are ignored #311

Closed excid3 closed 11 years ago

excid3 commented 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]

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