Skip to content

Commit b477098

Browse files
committed
Slider: add options for event callbacks
1 parent 18b8ffd commit b477098

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tests/unit/slider/slider_common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ TestHelpers.commonWidgetTests( "slider", {
1414
values: null,
1515

1616
// callbacks
17-
create: null
17+
create: null,
18+
change: null,
19+
slide: null,
20+
start: null,
21+
stop: null
1822
}
1923
});

ui/jquery.ui.slider.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ $.widget( "ui.slider", $.ui.mouse, {
3232
range: false,
3333
step: 1,
3434
value: 0,
35-
values: null
35+
values: null,
36+
37+
// callbacks
38+
change: null,
39+
slide: null,
40+
start: null,
41+
stop: null
3642
},
3743

3844
_create: function() {

0 commit comments

Comments
 (0)