From add78440f818c5164f346d016116872780541883 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 30 Sep 2015 11:46:52 -0400 Subject: [PATCH] Button: Typos --- ui/widgets/button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/widgets/button.js b/ui/widgets/button.js index 34a2afa40..bdba5bcb0 100644 --- a/ui/widgets/button.js +++ b/ui/widgets/button.js @@ -121,7 +121,9 @@ $.widget( "ui.button", { }, _enhance: function() { - this.element.attr( "role", "button" ); + if ( !this.element.is( "button" ) ) { + this.element.attr( "role", "button" ); + } if ( this.options.icon ) { this._updateIcon( "icon", this.options.icon ); -- 2.39.5