Browse files

use resource_id, not data.resource_id

  • Loading branch information...
1 parent e85718a commit a1e40647092f1b851e3eb4d8b18d3206e01f121a @jedahan jedahan committed Sep 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/public/scripts/lepidoptera.coffee
View
4 src/public/scripts/lepidoptera.coffee
@@ -63,7 +63,7 @@ lepidoptera = ->
# see if we have a marker on the map for this resource
for m in markers
- marker = m if m.title is data.resource_id
+ marker = m if m.title is resource_id
# if we don't, add it to the map. This may be better put in updatePresence
if not marker?
@@ -72,7 +72,7 @@ lepidoptera = ->
icon: "../images/icon-car-map-active.png"
map: mapGoogle
html: "<strong>#{data.car_name}</strong>"
- title: data.resource_id
+ title: resource_id
infowindow = new google.maps.InfoWindow
google.maps.event.addListener marker, 'click', () ->

0 comments on commit a1e4064

Please sign in to comment.