dialog: always convert value for closeText option to a string (fixes options-tests)

This commit is contained in:
Jörn Zaefferer 2009-09-15 08:40:17 +00:00
parent ba1f184deb
commit 7f2683aa81

View File

@ -432,7 +432,8 @@ $.widget("ui.dialog", {
self._createButtons(value);
break;
case "closeText":
self.uiDialogTitlebarCloseText.text(value);
// convert whatever was passed in o a string, for text() to not throw up
self.uiDialogTitlebarCloseText.text("" + value);
break;
case "dialogClass":
uiDialog