aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-03-23 18:39:04 -0400
committerScott González <scott.gonzalez@gmail.com>2015-03-25 15:55:19 -0400
commite109e768190089744804d084e9a26f010dd63a37 (patch)
treeb51d7fbf65c0ff809986bbbf2e99cbebd7109981
parentfdbb85be397b1d1e632ead53a53c57d30739e70c (diff)
downloadjquery-ui-e109e768190089744804d084e9a26f010dd63a37.tar.gz
jquery-ui-e109e768190089744804d084e9a26f010dd63a37.zip
Spinner: Properly handle empty attributes in create with jQuery git
jQuery now returns `null` for empty attributes instead of `undefined`. Ref gh-1516
-rw-r--r--ui/spinner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spinner.js b/ui/spinner.js
index 870b2cd89..9a08208c1 100644
--- a/ui/spinner.js
+++ b/ui/spinner.js
@@ -105,7 +105,7 @@ return $.widget( "ui.spinner", {
$.each( [ "min", "max", "step" ], function( i, option ) {
var value = element.attr( option );
- if ( value !== undefined && value.length ) {
+ if ( value != null && value.length ) {
options[ option ] = value;
}
} );