mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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 e109e76819
)
This commit is contained in:
parent
6d9194ac11
commit
f6379dc655
@ -92,7 +92,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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user