X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Finteraction.js;h=9dce5b7aec63e4c21b24d1b3c18e5e5345adcb7a;hb=64f1c4dfd7425931fcd1bd9949157c0ba6958656;hp=5936189f363d78dea5ef2c69623a3f70288d98ba;hpb=e88a95b4dbb4cb6f8d8cb4086209915944cbea54;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"),