diff options
author | wei <> | 2006-06-19 22:45:22 +0000 |
---|---|---|
committer | wei <> | 2006-06-19 22:45:22 +0000 |
commit | 91acd1d8db94cb9712f4e8c1487fdb3352c664fa (patch) | |
tree | 84927e23d40203b838037d146c96b826039a75dd /framework/Web/UI/WebControls | |
parent | 588727c7e2b8954ec3dbde293cf4c4d68b119f9b (diff) |
fixed TClientScript
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r-- | framework/Web/UI/WebControls/TClientScript.php | 9 |
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);
+ }
}
}
}
|