Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow TimeSeries resetBounds option to be false.

  • Loading branch information...
commit 469754e5d0b24c82cf71b6a5f39ad952f6f4defe 1 parent 38ce7fc
@joewalnes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  smoothie.js
View
2  smoothie.js
@@ -45,7 +45,7 @@
function TimeSeries(options) {
options = options || {};
options.resetBoundsInterval = options.resetBoundsInterval || 3000; // Reset the max/min bounds after this many milliseconds
- options.resetBounds = options.resetBounds || true; // Enable or disable the resetBounds timer
+ options.resetBounds = options.resetBounds === undefined ? true : options.resetBounds; // Enable or disable the resetBounds timer
this.options = options;
this.data = [];
Please sign in to comment.
Something went wrong with that request. Please try again.