From b477098da5cb57336540f993cd2dbdfc73d63d03 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 2 Jan 2013 14:58:12 -0500 Subject: [PATCH] Slider: add options for event callbacks --- tests/unit/slider/slider_common.js | 6 +++++- ui/jquery.ui.slider.js | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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() { -- 2.39.5