forked from seiyria/bootstrap-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In some cases where diff between max and min can be zero (e.g. when used with mutable collections where items are deleted), the library will attempt a division by zero, resulting in this.percentages to contain NaN or Infinity values. This adds a check, defaulting to [0, 0, 0].
- Loading branch information
Vince Martinez
committed
May 6, 2014
1 parent
7a7193d
commit 82605d8
Showing
1 changed file
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters