aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-09-09 19:24:10 -0400
committerScott González <scott.gonzalez@gmail.com>2011-09-09 19:24:10 -0400
commit4387d19030820077ac408e373bc135807e6a6002 (patch)
tree39052c49f5bb6583c4ec601e56483984fd78b640 /ui/jquery.ui.spinner.js
parentc1cda180a93a6c0a63cf21a68dacb54233e03d03 (diff)
downloadjquery-ui-4387d19030820077ac408e373bc135807e6a6002.tar.gz
jquery-ui-4387d19030820077ac408e373bc135807e6a6002.zip
Spinner: Default min and max options to null.
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index a5c25cd34..97ee20e54 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -30,8 +30,8 @@ $.widget( "ui.spinner", {
widgetEventPrefix: "spin",
options: {
incremental: true,
- max: Number.MAX_VALUE,
- min: -Number.MAX_VALUE,
+ max: null,
+ min: null,
numberFormat: null,
page: 10,
step: 1,
@@ -247,11 +247,11 @@ $.widget( "ui.spinner", {
_trimValue: function( value ) {
var options = this.options;
- if ( value > options.max) {
+ if ( options.max != null && value > options.max) {
return options.max;
}
- if ( value < options.min ) {
+ if ( options.min != null && value < options.min ) {
return options.min;
}