From e109e768190089744804d084e9a26f010dd63a37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 23 Mar 2015 18:39:04 -0400 Subject: [PATCH] Spinner: Properly handle empty attributes in create with jQuery git jQuery now returns `null` for empty attributes instead of `undefined`. Ref gh-1516 --- ui/spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } ); -- 2.39.5