From: Alexander Schmitz Date: Wed, 30 Sep 2015 15:46:52 +0000 (-0400) Subject: Button: Typos X-Git-Tag: 1.12.0-beta.1~60 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=add78440f818c5164f346d016116872780541883;p=jquery-ui.git Button: Typos --- 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 );