From: Dan Vanderkam Date: Thu, 22 Oct 2015 16:17:09 +0000 (-0400) Subject: Start porting gallery X-Git-Tag: v2.0.0~38^2~12 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a14d974418eb6f0b06f7fc4aed50b8bb9d4cea0a;hp=7356503750b201bffdf0225875edde715eeb89ee;p=dygraphs.git Start porting gallery --- diff --git a/common/textarea.js b/common/textarea.js index b3a9590..ec79e0d 100644 --- a/common/textarea.js +++ b/common/textarea.js @@ -112,14 +112,14 @@ TextArea.prototype.show = function(title, content) { } } - Dygraph.addEvent(document, "keydown", this.keyDownListener_); + document.addEventListener("keydown", this.keyDownListener_); this.reposition(); window.addEventListener('resize', this.reposition, false); document.documentElement.addEventListener('onscroll', this.reposition); } TextArea.prototype.hide = function() { - Dygraph.removeEvent(document, "keypress", this.keyDownListener_); + document.removeEventListener('keypress', this.keyDownListener_); this.keyDownListener_ = null; this.elem.style.display = "none"; this.background.style.display = "none"; diff --git a/gallery/index.html b/gallery/index.html index 41a1295..ddfe5ba 100644 --- a/gallery/index.html +++ b/gallery/index.html @@ -3,7 +3,7 @@ Dygraphs Gallery - +