Permalink
Browse files

fixed enumerate to avoid conflict with ".get" on the collection

  • Loading branch information...
1 parent 16ae257 commit e163a92689fccd771c18710fc2463688a9928a34 @nicolaslara nicolaslara committed Feb 27, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −1 geotagging/static/js/app/MapView.js
  2. +0 −1 geotagging/static/js/app/Spot.js
@@ -110,8 +110,8 @@ $$.MapView = Backbone.View.extend({
item.style.externalGraphic = 'http://google-maps-icons.googlecode.com/files/'+options.color+(numbering < 10 ? "0"+numbering : numbering)+'.png';
item.style.graphicHeight = 27;
item.style.graphicWidth = 27;
- layer.collection.add(new $$.Spot(item));
layer.collection.remove(spot);
+ layer.collection.add(new $$.Spot(item));
$('.map-legend.id'+item.id).attr("class", "map-legend number"+(numbering < 10 ? "0"+numbering : numbering));
numbering += 1;
});
@@ -76,7 +76,6 @@ $$.SpotView = Backbone.View.extend({
markerClick: function (event) {
log('Spot:markerClick');
-
log(this.model.layer.get('map'));
if (this.popup == null) {

0 comments on commit e163a92

Please sign in to comment.