Make openSidebar() work with no argument.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:52:31 +0000 (13:52 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:52:31 +0000 (13:52 +0000)
app/views/site/_sidebar.rhtml

index d813635..ad2845f 100644 (file)
@@ -14,6 +14,8 @@
   var onclose;
 
   function openSidebar(options) {
+    options = options || {};
+
     if (onclose) {
        onclose();
        onclose = null;