From 91acd1d8db94cb9712f4e8c1487fdb3352c664fa Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 19 Jun 2006 22:45:22 +0000 Subject: fixed TClientScript --- framework/Web/UI/WebControls/TClientScript.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/Web/UI/WebControls/TClientScript.php b/framework/Web/UI/WebControls/TClientScript.php index 020b44b8..513f41c2 100644 --- a/framework/Web/UI/WebControls/TClientScript.php +++ b/framework/Web/UI/WebControls/TClientScript.php @@ -104,9 +104,12 @@ class TClientScript extends TControl $types = preg_split('/,|\s+/', $this->getPreRenderControlTypes()); foreach($types as $type) { - $control = Prado::createComponent($type); - $control->setPage($this->getPage()); - $control->onPreRender($param); + if(strlen($type)) + { + $control = Prado::createComponent(trim($type)); + $control->setPage($this->getPage()); + $control->onPreRender($param); + } } } } -- cgit v1.2.3