diff options
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 868e2333e..8f84e5c94 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -312,7 +312,9 @@ $.extend(fixmystreet.utils, { } // clickFeature operates on touchstart, we do not want the map click taking place on touchend! - fixmystreet.maps.click_control.deactivate(); + if (fixmystreet.maps.click_control) { + fixmystreet.maps.click_control.deactivate(); + } // All of this, just so that ctrl/cmd-click on a pin works?! var event; |