nearly all lint errors gone; closure compiler still happy
[dygraphs.git] / plugins / grid.js
index 3ccc2ae..9186dd4 100644 (file)
@@ -3,12 +3,15 @@
  * Copyright 2012 Dan Vanderkam (danvdk@gmail.com)
  * MIT-licensed (http://opensource.org/licenses/MIT)
  */
+/*global Dygraph:false */
 
 Dygraph.Plugins.Grid = (function() {
 
 /*
 
 Current bits of jankiness:
+- Direct layout access
+- Direct area access
 
 */
 
@@ -30,11 +33,11 @@ grid.prototype.toString = function() {
 
 grid.prototype.activate = function(g) {
   return {
-    drawChart: this.drawChart
+    willDrawChart: this.willDrawChart
   };
 };
 
-grid.prototype.drawChart = function(e) {
+grid.prototype.willDrawChart = function(e) {
   // Draw the new X/Y grid. Lines appear crisper when pixels are rounded to
   // half-integers. This prevents them from drawing in two rows/cols.
   var g = e.dygraph;
@@ -81,7 +84,7 @@ grid.prototype.drawChart = function(e) {
     }
     ctx.restore();
   }
-}
+};
 
 grid.prototype.destroy = function() {
 };