From c16a5e58f9e4c130d15e86898e62707c43877ab4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 17 Mar 2015 20:22:49 -0400 Subject: All: Consolidate `.removeAttr()` calls Closes gh-1505 --- ui/spinner.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ui/spinner.js') diff --git a/ui/spinner.js b/ui/spinner.js index ff0c40885..870b2cd89 100644 --- a/ui/spinner.js +++ b/ui/spinner.js @@ -488,11 +488,7 @@ return $.widget( "ui.spinner", { _destroy: function() { this.element .prop( "disabled", false ) - .removeAttr( "autocomplete" ) - .removeAttr( "role" ) - .removeAttr( "aria-valuemin" ) - .removeAttr( "aria-valuemax" ) - .removeAttr( "aria-valuenow" ); + .removeAttr( "autocomplete role aria-valuemin aria-valuemax aria-valuenow" ); this.uiSpinner.replaceWith( this.element ); }, -- cgit v1.2.3