diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:40:17 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:40:17 +0000 |
commit | 7f2683aa81fff39d2922ddbc1395a07ab68b39a2 (patch) | |
tree | d759d1b30f1c7877606471239c84472d9aef7733 | |
parent | ba1f184debad52d8aaeb27ec57279b3dba6a6989 (diff) | |
download | jquery-ui-7f2683aa81fff39d2922ddbc1395a07ab68b39a2.tar.gz jquery-ui-7f2683aa81fff39d2922ddbc1395a07ab68b39a2.zip |
dialog: always convert value for closeText option to a string (fixes options-tests)
-rw-r--r-- | ui/ui.dialog.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |