don't execute if there's no map

This commit is contained in:
Connor Turland 2016-04-22 14:32:24 -04:00
parent 1c988b5a8f
commit a3b4f96d37

View file

@ -567,6 +567,8 @@ Metamaps.Map.InfoBox = {
addTypeahead: function () { addTypeahead: function () {
var self = Metamaps.Map.InfoBox var self = Metamaps.Map.InfoBox
if (!Metamaps.Active.Map) return
// for autocomplete // for autocomplete
var collaborators = { var collaborators = {
name: 'collaborators', name: 'collaborators',