aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-06 17:08:50 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-06 17:08:50 -0400
commitb10c4cdab5faf88c8f64c1343f487cb5af8ea4db (patch)
treeea0c9dae879352c532375a378d92665bd8897746
parent160a301d96c09403b87ef8365b201617344e425d (diff)
downloadjquery-ui-b10c4cdab5faf88c8f64c1343f487cb5af8ea4db.tar.gz
jquery-ui-b10c4cdab5faf88c8f64c1343f487cb5af8ea4db.zip
Spinner: Define defaults for callbacks.
-rw-r--r--tests/unit/spinner/spinner_defaults.js6
-rw-r--r--ui/jquery.ui.spinner.js7
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/unit/spinner/spinner_defaults.js b/tests/unit/spinner/spinner_defaults.js
index c9a7d5f62..0bde94a58 100644
--- a/tests/unit/spinner/spinner_defaults.js
+++ b/tests/unit/spinner/spinner_defaults.js
@@ -10,6 +10,10 @@ commonWidgetTests( "spinner", {
value: null,
// callbacks
- create: null
+ change: null,
+ create: null,
+ spin: null,
+ start: null,
+ stop: null
}
});
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index b090c6122..a18cc3b3b 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -24,7 +24,12 @@ $.widget( "ui.spinner", {
numberFormat: null,
page: 10,
step: null,
- value: null
+ value: null,
+
+ change: null,
+ spin: null,
+ start: null,
+ stop: null
},
_create: function() {