Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apcom52 committed Sep 27, 2018
1 parent 6adc4e9 commit cbd23f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InputRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ class InputRange {
this.__element = element;
this.__input = options.input || this.__element.getElementsByTagName('input')[0];
this.__range = options.range || this.__element.getElementsByClassName('range-slider')[0];
this.__min = options.min || this.__input.dataset.min || this.__range.dataset.min || 0;
this.__max = options.max || this.__input.dataset.max || this.__range.dataset.max || 100;
this.__min = parseFloat(options.min) || parseFloat(this.__input.dataset.min) || parseFloat(this.__range.dataset.min) || 0;
this.__max = parseFloat(options.max) || parseFloat(this.__input.dataset.max) || parseFloat(this.__range.dataset.max) || 100;
this.__onChangeCallback = options.onChange || null;
this.__slider = null;

Expand Down

0 comments on commit cbd23f7

Please sign in to comment.