From 0bc73b74b6acfe3c6b996e272649fbdbd14ce0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 16 Nov 2012 00:05:40 +0100 Subject: [PATCH] Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. Removed outdated TODOs. --- ui/jquery.ui.dialog.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 314db95ff..8a52ff236 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -427,7 +427,6 @@ $.widget("ui.dialog", { }); }, - // TODO why are handles passed by _setOption?? _makeResizable: function() { var that = this, options = this.options, @@ -580,15 +579,6 @@ $.widget("ui.dialog", { }); } - if ( key === "disabled" ) { - // TODO use toggleClass( "ui-dialog-disabled", value ) - if ( value ) { - uiDialog.addClass( "ui-dialog-disabled" ); - } else { - uiDialog.removeClass( "ui-dialog-disabled" ); - } - } - if ( key === "draggable" ) { isDraggable = uiDialog.is( ":data(ui-draggable)" ); if ( isDraggable && !value ) { @@ -624,7 +614,6 @@ $.widget("ui.dialog", { if ( key === "title" ) { // convert whatever was passed in to a string, for html() to not throw up - // TODO deduplicate this (see _create) $( ".ui-dialog-title", this.uiDialogTitlebar ) .html( "" + ( value || " " ) ); }