I realized a map with the plugin goMap(). Therefore I wrote this function:
$(function() {
$("#map").goMap({ ...
What can I do to prevent this Type Error:
'undefined' is not a function (evaluating '$("#map").goMap')
at all other sides, which hasn’t a map.
For the pages you don’t want the map, you can check if goMap is defined before using it. Call it only if it’s a function:
Is this what you want?