Permalink
Browse files

Start porting gallery

  • Loading branch information...
1 parent 7356503 commit a14d974418eb6f0b06f7fc4aed50b8bb9d4cea0a @danvk committed Oct 22, 2015
Showing with 3 additions and 3 deletions.
  1. +2 −2 common/textarea.js
  2. +1 −1 gallery/index.html
View
@@ -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";
View
@@ -3,7 +3,7 @@
<head>
<title>Dygraphs Gallery</title>
- <script src="../dygraph-dev.js"></script>
+ <script src="../dist/dygraph.js"></script>
<script src="../extras/synchronizer.js"></script>
<script src="lib/jquery-1.4.2.js"></script>

0 comments on commit a14d974

Please sign in to comment.