r3225 committed - dialog: always convert value for closeText option to a string (fixes o...
Revision: 3225
Author: joern.zaefferer
Date: Tue Sep 15 01:40:17 2009
Log: dialog: always convert value for closeText option to a string (fixes
options-tests)
http://code.google.com/p/jquery-ui/source/detail?r=3225
Modified:
/trunk/ui/ui.dialog.js
=======================================
--- /trunk/ui/ui.dialog.js Tue Aug 25 18:40:01 2009
+++ /trunk/ui/ui.dialog.js Tue Sep 15 01:40:17 2009
@@ -432,7 +432,8 @@
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