aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-09-30 11:46:52 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:02:58 -0400
commitadd78440f818c5164f346d016116872780541883 (patch)
tree7086c2e4e6d95493f757a6acefc578ab621de5a8 /ui/widgets
parent754e041cbdb3e32ce708626050bdd5b82f328d35 (diff)
downloadjquery-ui-add78440f818c5164f346d016116872780541883.tar.gz
jquery-ui-add78440f818c5164f346d016116872780541883.zip
Button: Typos
Diffstat (limited to 'ui/widgets')
-rw-r--r--ui/widgets/button.js4
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 );