X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Finteraction.js;h=9dce5b7aec63e4c21b24d1b3c18e5e5345adcb7a;hb=7e692257515a69ce328851c45fddfb21a1457402;hp=5936189f363d78dea5ef2c69623a3f70288d98ba;hpb=335011fd4473f55aaaceb69726d15e0063373149;p=dygraphs.git diff --git a/gallery/interaction.js b/gallery/interaction.js index 5936189..9dce5b7 100644 --- a/gallery/interaction.js +++ b/gallery/interaction.js @@ -49,10 +49,6 @@ Gallery.register( }, run: function() { - var lastClickedGraph; - // TODO(konigsberg): Add cleanup to remove callbacks. - Dygraph.addEvent(document, "mousewheel", function() { lastClickedGraph = null; }); - Dygraph.addEvent(document, "click", function() { lastClickedGraph = null; }); new Dygraph(document.getElementById("div_g"), NoisyData, { errorBars : true }); new Dygraph(document.getElementById("div_g2"),