Simplify
authorJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 8 Nov 2013 00:37:14 +0000 (16:37 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 8 Nov 2013 00:37:14 +0000 (16:37 -0800)
app/assets/javascripts/index.js

index 1ea1d7c7f8c70060706e5ffc470279972f1a62b8..5cc3a25b86c291815d808b277b45f8fa60344733 100644 (file)
@@ -231,10 +231,10 @@ $(document).ready(function () {
   initializeNotes(map);
 
   OSM.Index = function(map) {
-    var page = {}, minimized = $('#sidebar').hasClass('minimized');
+    var page = {};
 
     page.pushstate = page.popstate = function(path) {
-      if (minimized) $("#sidebar").addClass("minimized");
+      $("#sidebar").addClass("minimized");
       map.invalidateSize();
       $('#sidebar_content').load(path);
     };