cleanup
authorDan Vanderkam <danvdk@gmail.com>
Sat, 26 Oct 2013 23:54:41 +0000 (18:54 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Sat, 26 Oct 2013 23:54:41 +0000 (18:54 -0500)
plugins/range-selector.js

index 5e1a65f..d226eba 100644 (file)
@@ -541,11 +541,11 @@ rangeSelector.prototype.initInteraction_ = function() {
 rangeSelector.prototype.drawStaticLayer_ = function() {
   var ctx = this.bgcanvas_ctx_;
   ctx.clearRect(0, 0, this.canvasRect_.w, this.canvasRect_.h);
-  // try {
+  try {
     this.drawMiniPlot_();
-  // } catch(ex) {
-  //   Dygraph.warn(ex);
-  // }
+  } catch(ex) {
+    Dygraph.warn(ex);
+  }
 
   var margin = 0.5;
   this.bgcanvas_ctx_.lineWidth = 1;