From 7f2683aa81fff39d2922ddbc1395a07ab68b39a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 15 Sep 2009 08:40:17 +0000 Subject: [PATCH] dialog: always convert value for closeText option to a string (fixes options-tests) --- ui/ui.dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 7a373f977..6d7ca9ed5 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -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