Fix gallery navigation from interaction demo (#825)
authorMadis Allikmaa <zemadz@gmail.com>
Mon, 8 May 2017 14:04:32 +0000 (17:04 +0300)
committerDan Vanderkam <danvdk@gmail.com>
Mon, 8 May 2017 14:04:32 +0000 (10:04 -0400)
gallery/interaction.js

index a903737..9dce5b7 100644 (file)
@@ -49,9 +49,6 @@ Gallery.register(
 
     },
     run: function() {
-      var lastClickedGraph;
-      document.addEventListener("mousewheel", function() { lastClickedGraph = null; });
-      document.addEventListener("click", function() { lastClickedGraph = null; });
       new Dygraph(document.getElementById("div_g"),
            NoisyData, { errorBars : true });
       new Dygraph(document.getElementById("div_g2"),
@@ -84,9 +81,5 @@ Gallery.register(
              },
              underlayCallback : captureCanvas
           });
-    },
-    clean: function() {
-      document.removeEventListener('mousewheel');
-      document.removeEventListener('click');
     }
   });