]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: Typos
authorAlexander Schmitz <arschmitz@gmail.com>
Wed, 30 Sep 2015 15:46:52 +0000 (11:46 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Thu, 8 Oct 2015 18:02:58 +0000 (14:02 -0400)
ui/widgets/button.js

index 34a2afa407ddb0b38c0bbb9bd2ca83693910afc5..bdba5bcb025010bf52dab1dc69aa0df087ae45d4 100644 (file)
@@ -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 );