lint checks mostly pass
[dygraphs.git] / plugins / unzoom.js
index d81413a..726a1f6 100644 (file)
 // THE SOFTWARE.
 
 
-/** 
+/**
  * @fileoverview Plug-in for providing unzoom-on-hover.
  *
  * @author konigsberg@google.com (Robert Konigsberg)
  */
 Dygraph.Plugins.Unzoom = (function() {
-  
+
   "use strict";
-  
+
   /**
    * Create a new instance.
    *
@@ -40,10 +40,10 @@ Dygraph.Plugins.Unzoom = (function() {
     // because the unzoom button state can change even when the
     // mouse-over state hasn't.
     this.over_ = false;
-  };  
-    
+  };
+
   unzoom.prototype.toString = function() {
-    return 'Unzoom Plugin'; 
+    return 'Unzoom Plugin';
   };
 
   unzoom.prototype.activate = function(g) {
@@ -55,7 +55,7 @@ Dygraph.Plugins.Unzoom = (function() {
   unzoom.prototype.willDrawChart = function(e) {
     var g = e.dygraph;
 
-    if (this.button_ != null) {
+    if (this.button_ !== null) {
       // short-circuit: show the button only when we're moused over, and zoomed in.
       var showButton = g.isZoomed() && this.over_;
       this.show(showButton);
@@ -76,7 +76,7 @@ Dygraph.Plugins.Unzoom = (function() {
     var self = this;
     this.button_.onclick = function() {
       g.resetZoom();
-    }
+    };
 
     g.addEvent(parent, 'mouseover', function() {
       if (g.isZoomed()) {