diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-01 08:59:55 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-01 08:59:55 -0500 |
commit | 7bbda71a32cc4953715ed34eab2ab48c5e736154 (patch) | |
tree | b2739ba5c4712fb87ec4bc75fdd68c2f7cf23736 /ui/jquery.ui.dialog.js | |
parent | 62cda1f95d0e7040153f0b5fe5745d199a0a094e (diff) | |
download | jquery-ui-7bbda71a32cc4953715ed34eab2ab48c5e736154.tar.gz jquery-ui-7bbda71a32cc4953715ed34eab2ab48c5e736154.zip |
Dialog: Check for empty array in addition to empty object when checking if there are buttons. Fixes #9043 - Dialog: Buttonpane shown with no buttons when modifying native prototypes.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index b6ac7aed7..cb62155e5 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -396,7 +396,7 @@ $.widget( "ui.dialog", { this.uiDialogButtonPane.remove(); this.uiButtonSet.empty(); - if ( $.isEmptyObject( buttons ) ) { + if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) { this.uiDialog.removeClass("ui-dialog-buttons"); return; } |