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