Can't disable resetBounds #22

davidgaleano opened this Issue Sep 27, 2012 · 0 comments


None yet

2 participants


The logic operation when setting resetBounds on a TimeSeries is wrong:

options.resetBounds = options.resetBounds || true

The logical or will always return the operand that makes the condition true or the last one, so if you set resetBounds to false it will always pick the true at the end.

Something like this should work:

options.resetBounds = ("resetBounds" in options ? options.resetBounds : true);
@joewalnes joewalnes closed this Sep 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment