]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/id.js
Change roundabout exit logic and remove blank string from locale file
[rails.git] / app / assets / javascripts / id.js
index 687f1e0447043285b3e3be9d44fa7a1f8bea4bfe..dd7cd3325f10f293311e79435cec6633a3d1f8ac 100644 (file)
@@ -1,5 +1,7 @@
 //= require iD
 
+/* globals iD */
+
 document.addEventListener("DOMContentLoaded", function() {
   var container = document.getElementById("id-container");
 
@@ -12,7 +14,7 @@ document.addEventListener("DOMContentLoaded", function() {
     var id = iD.Context()
       .embed(true)
       .assetPath("iD/")
-      .assetMap(container.dataset.assetMap)
+      .assetMap(JSON.parse(container.dataset.assetMap))
       .locale(container.dataset.locale, container.dataset.localePath)
       .preauth({
         urlroot: location.protocol + "//" + location.host,