RagtagOpen / nomad

Apache License 2.0
10 stars 22 forks source link

SyntaxError: Identifier 'markers' has already been declared #740

Closed dryan closed 5 years ago

dryan commented 6 years ago

https://sentry.ragtag.org/ragtag/nomad-prod/issues/127/

We've got an issue with using var markers in both find.js and script.js and loading them on the same page. I think the best solution would be to wrap both files inside a function scope (function() { ... })() which keeps them from polluting the global namespace.

SyntaxError: Identifier 'markers' has already been declared
  at None (/static/js/script.js:1:1)