Skip to content

Commit f6379dc

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 (cherry picked from commit e109e76)
1 parent 6d9194a commit f6379dc

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
@@ -92,7 +92,7 @@ return $.widget( "ui.spinner", {
9292

9393
$.each( [ "min", "max", "step" ], function( i, option ) {
9494
var value = element.attr( option );
95-
if ( value !== undefined && value.length ) {
95+
if ( value != null && value.length ) {
9696
options[ option ] = value;
9797
}
9898
});

0 commit comments

Comments
 (0)