summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
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);
+ }
}
}
}