Skip to content

Commit e109e76

Browse files
committed
Spinner: Properly handle empty attributes in create with jQuery git
jQuery now returns `null` for empty attributes instead of `undefined`. Ref gh-1516
1 parent fdbb85b commit e109e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/spinner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ return $.widget( "ui.spinner", {
105105

106106
$.each( [ "min", "max", "step" ], function( i, option ) {
107107
var value = element.attr( option );
108-
if ( value !== undefined && value.length ) {
108+
if ( value != null && value.length ) {
109109
options[ option ] = value;
110110
}
111111
} );

0 commit comments

Comments
 (0)