From f6379dc65548e9770b53f29bfa901576a38064ec 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 (cherry picked from commit e109e768190089744804d084e9a26f010dd63a37) --- ui/spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/spinner.js b/ui/spinner.js index ccbce7c96..068c129ed 100644 --- a/ui/spinner.js +++ b/ui/spinner.js @@ -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; } }); -- 2.39.5