Skip to content

Commit

Permalink
use resource_id, not data.resource_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Sep 12, 2011
1 parent e85718a commit a1e4064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/scripts/lepidoptera.coffee
Expand Up @@ -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?
Expand All @@ -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', () ->
Expand Down

0 comments on commit a1e4064

Please sign in to comment.