0

Fixed IE11 JS errors

Closes issue #1022.
Thanks to mattlee78 for pointing this out.
This commit is contained in:
Nicolas Frattaroli
2013-11-08 06:56:45 +01:00
parent cbd76d87a0
commit 2b78b63e1a
2 changed files with 5 additions and 5 deletions

View File

@@ -23,14 +23,14 @@ overviewer.models.WorldCollection = Backbone.Collection.extend({
*/
overviewer.models.TileSetModel = Backbone.Model.extend({
defaults: {
markers: [] ,
markers: []
},
initialize: function(attrs) {
// this implies that the Worlds collection must be
// initialized before any TIleSetModels are created
attrs.world = overviewer.collections.worlds.get(attrs.world);
this.set(attrs);
},
}
});
overviewer.models.TileSetCollection = Backbone.Collection.extend({
@@ -42,6 +42,6 @@ overviewer.models.GoogleMapModel = Backbone.Model.extend({
initialize: function(attrs) {
attrs.currentWorldView = overviewer.collections.worldViews[0];
this.set(attrs);
},
}
});

View File

@@ -49,7 +49,7 @@ overviewer.views.WorldView = Backbone.View.extend({
if (!tset.get("isOverlay")) { return; };
});
},
}
});
@@ -544,7 +544,7 @@ overviewer.views.SignControlView = Backbone.View.extend({
itemDiv.appendChild(textNode);
itemDiv.style.whiteSpace = "nowrap";
},
}
});
/**