Update CJavaScript.php

This commit is contained in:
Telrik
2013-07-22 06:18:06 -07:00
parent d71243ab9e
commit b93daa4a48

View File

@@ -78,7 +78,7 @@ class CJavaScript
elseif($value===INF)
return 'Number.POSITIVE_INFINITY';
else
return str_replace(',','.',(float)$var); // locale-independent representation
return str_replace(',','.',(float)$value); // locale-independent representation
}
elseif($value instanceof CJavaScriptExpression)
return $value->__toString();