Fixed IE11 JS errors
Closes issue #1022. Thanks to mattlee78 for pointing this out.
This commit is contained in:
@@ -23,14 +23,14 @@ overviewer.models.WorldCollection = Backbone.Collection.extend({
|
|||||||
*/
|
*/
|
||||||
overviewer.models.TileSetModel = Backbone.Model.extend({
|
overviewer.models.TileSetModel = Backbone.Model.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
markers: [] ,
|
markers: []
|
||||||
},
|
},
|
||||||
initialize: function(attrs) {
|
initialize: function(attrs) {
|
||||||
// this implies that the Worlds collection must be
|
// this implies that the Worlds collection must be
|
||||||
// initialized before any TIleSetModels are created
|
// initialized before any TIleSetModels are created
|
||||||
attrs.world = overviewer.collections.worlds.get(attrs.world);
|
attrs.world = overviewer.collections.worlds.get(attrs.world);
|
||||||
this.set(attrs);
|
this.set(attrs);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
overviewer.models.TileSetCollection = Backbone.Collection.extend({
|
overviewer.models.TileSetCollection = Backbone.Collection.extend({
|
||||||
@@ -42,6 +42,6 @@ overviewer.models.GoogleMapModel = Backbone.Model.extend({
|
|||||||
initialize: function(attrs) {
|
initialize: function(attrs) {
|
||||||
attrs.currentWorldView = overviewer.collections.worldViews[0];
|
attrs.currentWorldView = overviewer.collections.worldViews[0];
|
||||||
this.set(attrs);
|
this.set(attrs);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ overviewer.views.WorldView = Backbone.View.extend({
|
|||||||
if (!tset.get("isOverlay")) { return; };
|
if (!tset.get("isOverlay")) { return; };
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ overviewer.views.SignControlView = Backbone.View.extend({
|
|||||||
itemDiv.appendChild(textNode);
|
itemDiv.appendChild(textNode);
|
||||||
itemDiv.style.whiteSpace = "nowrap";
|
itemDiv.style.whiteSpace = "nowrap";
|
||||||
|
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user