cosmetic for when googlemap goes mad with broken query results
[myslice.git] / unfold / static / js / unfold-helper.js
index 8d75cc3..f5adb1b 100644 (file)
@@ -34,7 +34,11 @@ var unfold = {
     },
 
     escape_id: function(id) {
-        return id.replace( /(:|\.|\[|\])/g, "\\$1" );
+        if(typeof id != 'undefined'){
+            return id.replace( /(:|\.|\[|\])/g, "\\$1" );
+        }else{
+            return "undefined-id";
+        }
     }
 
 } // global unfold