Skip to content

Commit 4b608f1

Browse files
authored
fix error "Invalid argument." in IE8
1 parent dba31dc commit 4b608f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/ion.rangeSlider.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2176,8 +2176,9 @@
21762176
for (i = 0; i < num; i++) {
21772177
label = this.$cache.grid_labels[i][0];
21782178

2179-
if (this.coords.big_x[i] != Number.POSITIVE_INFINITY)
2179+
if (this.coords.big_x[i] !== Number.POSITIVE_INFINITY) {
21802180
label.style.marginLeft = -this.coords.big_x[i] + "%";
2181+
}
21812182
}
21822183
},
21832184

0 commit comments

Comments
 (0)