location: remove debug prints

also some style corrections
This commit is contained in:
Milan Pässler 2016-02-25 21:20:25 +01:00
parent 273d0d5d23
commit 9f48cb1f3b
3 changed files with 4 additions and 6 deletions

View File

@ -43,7 +43,7 @@ define(function () {
switch2plain() switch2plain()
return false return false
} }
a1.href = config.siteURL a1.href = "#"
var a2 = document.createElement("a") var a2 = document.createElement("a")
a2.textContent = "uci" a2.textContent = "uci"
a2.onclick = function() { a2.onclick = function() {

View File

@ -42,10 +42,9 @@ define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Nod
} }
self.gotoLocation = function (d) { self.gotoLocation = function (d) {
console.log("goto location called with ", d) create()
create() new Location(config, el, router, d)
new Location(config, el, router, d) }
}
return self return self
} }

View File

@ -275,7 +275,6 @@ define(["map/clientlayer", "map/labelslayer",
} }
function contextMenuGotoLocation(e) { function contextMenuGotoLocation(e) {
console.log("context menu called at ", e)
router.gotoLocation(e.latlng) router.gotoLocation(e.latlng)
} }