Skip to content

Commit 15089a8

Browse files
authored
Merge pull request #389 from aiduryagin/master
fix error "Invalid argument." in IE8
2 parents b70c246 + 4b608f1 commit 15089a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/ion.rangeSlider.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,10 @@
21772177

21782178
for (i = 0; i < num; i++) {
21792179
label = this.$cache.grid_labels[i][0];
2180-
label.style.marginLeft = -this.coords.big_x[i] + "%";
2180+
2181+
if (this.coords.big_x[i] !== Number.POSITIVE_INFINITY) {
2182+
label.style.marginLeft = -this.coords.big_x[i] + "%";
2183+
}
21812184
}
21822185
},
21832186

0 commit comments

Comments
 (0)