diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-09-30 11:46:52 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:02:58 -0400 |
commit | add78440f818c5164f346d016116872780541883 (patch) | |
tree | 7086c2e4e6d95493f757a6acefc578ab621de5a8 /ui/widgets | |
parent | 754e041cbdb3e32ce708626050bdd5b82f328d35 (diff) | |
download | jquery-ui-add78440f818c5164f346d016116872780541883.tar.gz jquery-ui-add78440f818c5164f346d016116872780541883.zip |
Button: Typos
Diffstat (limited to 'ui/widgets')
-rw-r--r-- | ui/widgets/button.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |