0

Have the world selector control have a correct default

This commit is contained in:
Andrew Chin
2012-04-07 16:15:01 -04:00
parent 6528aa91e7
commit 94b5f21d10
2 changed files with 8 additions and 4 deletions

View File

@@ -117,10 +117,6 @@ overviewer.util = {
});
var worldSelector = new overviewer.views.WorldSelectorView({tagName:'DIV'});
overviewer.collections.worlds.bind("add", worldSelector.render, worldSelector);
// hook up some events
@@ -131,6 +127,11 @@ overviewer.util = {
// Jump to the hash if given
overviewer.util.initHash();
// create this control after initHash so it can correctly select the current world
var worldSelector = new overviewer.views.WorldSelectorView({tagName:'DIV'});
overviewer.collections.worlds.bind("add", worldSelector.render, worldSelector);
overviewer.util.initializeMarkers();
/*