diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-15 23:56:54 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-26 10:28:23 +0100 |
commit | 972f5c192c7c516659497c95452b159aae5f52df (patch) | |
tree | 686ebd5be7b8c26f3c63a4525bb7ea24446ae19a /ui/jquery.ui.dialog.js | |
parent | 0ae6fc1e02305fcd975225c2527fb0acacb424de (diff) | |
download | jquery-ui-972f5c192c7c516659497c95452b159aae5f52df.tar.gz jquery-ui-972f5c192c7c516659497c95452b159aae5f52df.zip |
Dialog: Button is now a fixed dependency, so remove the check
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 4a4c79630..314db95ff 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -369,7 +369,7 @@ $.widget("ui.dialog", { if ( !$.isEmptyObject( buttons ) ) { $.each( buttons, function( name, props ) { - var button, click; + var click; props = $.isFunction( props ) ? { click: props, text: name } : props; @@ -380,12 +380,10 @@ $.widget("ui.dialog", { props.click = function() { click.apply( that.element[0], arguments ); }; - button = $( "<button></button>", props ) - .appendTo( that.uiButtonSet ); - if ( $.fn.button ) { + $( "<button></button>", props ) // TODO allow passing through button options - button.button(); - } + .button() + .appendTo( that.uiButtonSet ); }); this.uiDialog.addClass( "ui-dialog-buttons" ); this.uiDialogButtonPane.appendTo( this.uiDialog ); |