File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ $.widget("ui.dialog", {
369
369
370
370
if ( ! $ . isEmptyObject ( buttons ) ) {
371
371
$ . each ( buttons , function ( name , props ) {
372
- var button , click ;
372
+ var click ;
373
373
props = $ . isFunction ( props ) ?
374
374
{ click : props , text : name } :
375
375
props ;
@@ -380,12 +380,10 @@ $.widget("ui.dialog", {
380
380
props . click = function ( ) {
381
381
click . apply ( that . element [ 0 ] , arguments ) ;
382
382
} ;
383
- button = $ ( "<button></button>" , props )
384
- . appendTo ( that . uiButtonSet ) ;
385
- if ( $ . fn . button ) {
383
+ $ ( "<button></button>" , props )
386
384
// TODO allow passing through button options
387
- button . button ( ) ;
388
- }
385
+ . button ( )
386
+ . appendTo ( that . uiButtonSet ) ;
389
387
} ) ;
390
388
this . uiDialog . addClass ( "ui-dialog-buttons" ) ;
391
389
this . uiDialogButtonPane . appendTo ( this . uiDialog ) ;
You can’t perform that action at this time.
0 commit comments