]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: add options for event callbacks
authorMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 19:58:12 +0000 (14:58 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 19:58:12 +0000 (14:58 -0500)
tests/unit/slider/slider_common.js
ui/jquery.ui.slider.js

index 48fd5e457465768a696498c7b9a2e11b400e8132..6d7278de6a2f63fcaa3185c4dbf7c675d0c49228 100644 (file)
@@ -14,6 +14,10 @@ TestHelpers.commonWidgetTests( "slider", {
                values: null,
 
                // callbacks
-               create: null
+               create: null,
+               change: null,
+               slide: null,
+               start: null,
+               stop: null
        }
 });
index 712c6853d50a5e15b7c9b0f3c68d08d432633e67..46c8a83aeb07f177b46e656a8246ef1ddc9fb303 100644 (file)
@@ -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() {