Skip to content
Permalink
Browse files

Spinner: Properly handle empty attributes in create with jQuery git

jQuery now returns `null` for empty attributes instead of `undefined`.

Ref gh-1516
  • Loading branch information
scottgonzalez committed Mar 23, 2015
1 parent fdbb85b commit e109e768190089744804d084e9a26f010dd63a37
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}
} );

0 comments on commit e109e76

Please sign in to comment.
You can’t perform that action at this time.