diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-23 18:39:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-03-25 15:55:19 -0400 |
commit | e109e768190089744804d084e9a26f010dd63a37 (patch) | |
tree | b51d7fbf65c0ff809986bbbf2e99cbebd7109981 | |
parent | fdbb85be397b1d1e632ead53a53c57d30739e70c (diff) | |
download | jquery-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.js | 2 |
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; } } ); |