don't push history on initial reset()
This commit is contained in:
parent
315012cfb7
commit
2c57cff27f
|
@ -111,7 +111,7 @@ require(["map", "infobox/main"], function (Map, Infobox) {
|
|||
historyDict.links[linkId(d)] = d
|
||||
})
|
||||
|
||||
gotoAnything.reset()
|
||||
gotoAnything.reset(false)
|
||||
|
||||
gotoHistory(gotoAnything, historyDict, window.location.hash)
|
||||
|
||||
|
@ -326,11 +326,14 @@ require(["map", "infobox/main"], function (Map, Infobox) {
|
|||
|
||||
var infobox
|
||||
|
||||
function resetView() {
|
||||
function resetView(push) {
|
||||
push = trueDefault(push)
|
||||
|
||||
targets.forEach( function (t) {
|
||||
t.resetView()
|
||||
})
|
||||
|
||||
if (push)
|
||||
pushHistory()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue