X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Finteraction.js;h=9dce5b7aec63e4c21b24d1b3c18e5e5345adcb7a;hb=ac422b3aa23612c220b14e938fbae79d01b40b86;hp=a90373754e7bf29d485b42ecc7c083a1dc406bc1;hpb=178b1e0a5023bd55b8636242623e7eb82ac12d5d;p=dygraphs.git 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'); } });