Skip to content

Commit bbcae92

Browse files
committed
missed the object style of float-labels in last commit
1 parent 7535128 commit bbcae92

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/jquery-ui-slider-pips.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery-ui-Slider-Pips - v1.7.5 - 2015-02-22
1+
/*! jQuery-ui-Slider-Pips - v1.7.6 - 2015-02-22
22
* Copyright (c) 2015 Simon Goellner <simey.me@gmail.com>; Licensed MIT */
33

44
// PIPS
@@ -441,7 +441,7 @@
441441
}
442442

443443
else if( $.type( options.labels.rest ) === "array" ) {
444-
vals[0] = options.labels.rest[ stepVal - slider.options.min - 1] || val;
444+
vals[0] = options.labels.rest[ stepVal - 1 ] || val;
445445
}
446446

447447
else {
@@ -463,7 +463,7 @@
463463
}
464464

465465
else if( $.type( options.labels.rest ) === "array" ) {
466-
vals[1] = options.labels.rest[ stepVal2 - slider.options.min - 1] || val2;
466+
vals[1] = options.labels.rest[ stepVal2 - 1] || val2;
467467
}
468468

469469
else {

dist/jquery-ui-slider-pips.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/jquery-ui-slider-pips.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@
439439
}
440440

441441
else if( $.type( options.labels.rest ) === "array" ) {
442-
vals[0] = options.labels.rest[ stepVal - slider.options.min - 1] || val;
442+
vals[0] = options.labels.rest[ stepVal - 1 ] || val;
443443
}
444444

445445
else {
@@ -461,7 +461,7 @@
461461
}
462462

463463
else if( $.type( options.labels.rest ) === "array" ) {
464-
vals[1] = options.labels.rest[ stepVal2 - slider.options.min - 1] || val2;
464+
vals[1] = options.labels.rest[ stepVal2 - 1] || val2;
465465
}
466466

467467
else {

0 commit comments

Comments
 (0)