Skip to content

Commit

Permalink
fixed enumerate to avoid conflict with ".get" on the collection
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslara committed Feb 27, 2012
1 parent 16ae257 commit e163a92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion geotagging/static/js/app/MapView.js
Expand Up @@ -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;
});
Expand Down
1 change: 0 additions & 1 deletion geotagging/static/js/app/Spot.js
Expand Up @@ -76,7 +76,6 @@ $$.SpotView = Backbone.View.extend({

markerClick: function (event) {
log('Spot:markerClick');

log(this.model.layer.get('map'));

if (this.popup == null) {
Expand Down

0 comments on commit e163a92

Please sign in to comment.