Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slider: add options for event callbacks

  • Loading branch information...
commit b477098da5cb57336540f993cd2dbdfc73d63d03 1 parent 18b8ffd
@mikesherov mikesherov authored
Showing with 12 additions and 2 deletions.
  1. +5 −1 tests/unit/slider/slider_common.js
  2. +7 −1 ui/jquery.ui.slider.js
View
6 tests/unit/slider/slider_common.js
@@ -14,6 +14,10 @@ TestHelpers.commonWidgetTests( "slider", {
values: null,
// callbacks
- create: null
+ create: null,
+ change: null,
+ slide: null,
+ start: null,
+ stop: null
}
});
View
8 ui/jquery.ui.slider.js
@@ -32,7 +32,13 @@ $.widget( "ui.slider", $.ui.mouse, {
range: false,
step: 1,
value: 0,
- values: null
+ values: null,
+
+ // callbacks
+ change: null,
+ slide: null,
+ start: null,
+ stop: null
},
_create: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.