From: Mike Sherov Date: Wed, 2 Jan 2013 19:58:12 +0000 (-0500) Subject: Slider: add options for event callbacks X-Git-Tag: 1.10.0-rc.1~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b477098da5cb57336540f993cd2dbdfc73d63d03;p=jquery-ui.git Slider: add options for event callbacks --- diff --git a/tests/unit/slider/slider_common.js b/tests/unit/slider/slider_common.js index 48fd5e457..6d7278de6 100644 --- a/tests/unit/slider/slider_common.js +++ b/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 } }); diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index 712c6853d..46c8a83ae 100644 --- a/ui/jquery.ui.slider.js +++ b/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() {