Start porting gallery
authorDan Vanderkam <danvdk@gmail.com>
Thu, 22 Oct 2015 16:17:09 +0000 (12:17 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Sun, 25 Oct 2015 02:44:14 +0000 (22:44 -0400)
common/textarea.js
gallery/index.html

index b3a9590..ec79e0d 100644 (file)
@@ -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";
index 41a1295..ddfe5ba 100644 (file)
@@ -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>