summaryrefslogtreecommitdiff
path: root/framework/TComponent.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r--framework/TComponent.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index dbcf4a60..dcc1064c 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -590,6 +590,8 @@ class TPropertyValue
*/
public static function ensureString($value)
{
+ if (TJavaScript::isJsLiteral($value))
+ return $value;
if (is_bool($value))
return $value?'true':'false';
else