From: Madis Allikmaa <zemadz@gmail.com>
Date: Mon, 8 May 2017 14:04:32 +0000 (+0300)
Subject: Fix gallery navigation from interaction demo (#825)
X-Git-Tag: v2.1.0~4
X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=f6e73ea983b61b50a6152c98a9945725eb45edb2;p=dygraphs.git

Fix gallery navigation from interaction demo (#825)
---

diff --git a/gallery/interaction.js b/gallery/interaction.js
index a903737..9dce5b7 100644
--- a/gallery/interaction.js
+++ b/gallery/interaction.js
@@ -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');
     }
   });