summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorwei <>2006-06-19 22:45:22 +0000
committerwei <>2006-06-19 22:45:22 +0000
commit91acd1d8db94cb9712f4e8c1487fdb3352c664fa (patch)
tree84927e23d40203b838037d146c96b826039a75dd /framework/Web/UI/WebControls
parent588727c7e2b8954ec3dbde293cf4c4d68b119f9b (diff)
fixed TClientScript
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TClientScript.php9
1 files changed, 6 insertions, 3 deletions
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);
+ }
}
}
}