]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.rhtml
Cope with not having a layer configuration at all.
[rails.git] / app / views / site / _sidebar.rhtml
index d813635905971a9c86a69b8c2b69aed017bca886..ad2845ff47ed8a637f6079e9fbf3ff31017a2124 100644 (file)
@@ -14,6 +14,8 @@
   var onclose;
 
   function openSidebar(options) {
+    options = options || {};
+
     if (onclose) {
        onclose();
        onclose = null;