From b10c4cdab5faf88c8f64c1343f487cb5af8ea4db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 6 Aug 2011 17:08:50 -0400 Subject: [PATCH] Spinner: Define defaults for callbacks. --- tests/unit/spinner/spinner_defaults.js | 6 +++++- ui/jquery.ui.spinner.js | 7 ++++++- 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() { -- 2.39.5