File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ test( "showLabel false without icon", function() {
43
43
$ ( "#button" ) . button ( {
44
44
showLabel : false
45
45
} ) ;
46
- strictEqual ( $ ( "#button" ) . attr ( "class" ) , "ui-button ui-widget ui- corner-all" ) ;
46
+ strictEqual ( $ ( "#button" ) . attr ( "class" ) , "ui-button ui-corner-all ui-widget " ) ;
47
47
48
48
$ ( "#button" ) . button ( "destroy" ) ;
49
49
} ) ;
@@ -54,7 +54,7 @@ test("showLabel false with icon", function() {
54
54
showLabel : false ,
55
55
icon : "iconclass"
56
56
} ) ;
57
- strictEqual ( $ ( "#button" ) . attr ( "class" ) , "ui-button ui-widget ui- corner-all ui-button-icon-only" ) ;
57
+ strictEqual ( $ ( "#button" ) . attr ( "class" ) , "ui-button ui-corner-all ui-widget ui-button-icon-only" ) ;
58
58
59
59
$ ( "#button" ) . button ( "destroy" ) ;
60
60
} ) ;
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ $.widget( "ui.button", {
80
80
this . options . disabled = this . element . prop ( "disabled" ) || false ;
81
81
}
82
82
83
+ this . hasTitle = this . element . attr ( "title" ) ;
83
84
this . _enhance ( ) ;
84
85
85
86
if ( this . element . is ( "a" ) ) {
@@ -97,7 +98,7 @@ $.widget( "ui.button", {
97
98
this . _setOption ( "disabled" , this . options . disabled ) ;
98
99
99
100
this . element
100
- . addClass ( this . _classes ( "ui-button" ) + "ui-widget" )
101
+ . addClass ( this . _classes ( "ui-button" ) + " ui-widget" )
101
102
. attr ( "role" , "button" ) ;
102
103
103
104
// Check to see if the label needs to be set or if its already correct
You can’t perform that action at this time.
0 commit comments