From f6e73ea983b61b50a6152c98a9945725eb45edb2 Mon Sep 17 00:00:00 2001 From: Madis Allikmaa Date: Mon, 8 May 2017 17:04:32 +0300 Subject: [PATCH] Fix gallery navigation from interaction demo (#825) --- gallery/interaction.js | 7 ------- 1 file changed, 7 deletions(-) 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'); } }); -- 2.7.4