From 79611edbd514621fa5cf61c92556f94ed5d203dc Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 9 Jul 2006 13:08:10 +0000 Subject: Spelling error fixes. --- framework/Web/UI/WebControls/TClientScript.php | 42 -------------------------- 1 file changed, 42 deletions(-) (limited to 'framework') diff --git a/framework/Web/UI/WebControls/TClientScript.php b/framework/Web/UI/WebControls/TClientScript.php index 1b8c78ea..d9addbba 100644 --- a/framework/Web/UI/WebControls/TClientScript.php +++ b/framework/Web/UI/WebControls/TClientScript.php @@ -31,11 +31,6 @@ * Contents within TClientScript will be treated as javascript code and will be * rendered in place. * - * The {@link setPreRenderControlTypes PreRenderControlTypes} property can - * be used to specify that controls type/class names that should pre-render itself - * even though they may not be rendered on the page. This is useful to publish - * controls that require assets and is only visible after a callback response. - * * @author Wei Zhuo * @version $Revision: $ $Date: $ * @package System.Web.UI.WebControls @@ -81,23 +76,6 @@ class TClientScript extends TControl $this->setViewState('ScriptUrl', $value, ''); } - /** - * @param string comma delimited list of controls that wish to be prerendered - * so as to publish its assets. - */ - public function setPreRenderControlTypes($value) - { - $this->setViewState('PreRenderControls', $value); - } - - /** - * @return string comma delimited list of controls types that require prerendering. - */ - public function getPreRenderControlTypes() - { - return $this->getViewState('PreRenderControls', ''); - } - /** * Calls the client script manager to add each of the requested client * script libraries. @@ -113,7 +91,6 @@ class TClientScript extends TControl if(($script = trim($script))!=='') $cs->registerPradoScript($script); } - $this->preRenderControls($param); } /** @@ -151,25 +128,6 @@ class TClientScript extends TControl $writer->write("\n/*]]>*/\n\n"); } } - - /** - * PreRender other controls to allow them to publish their assets. Useful - * when callback response components that require assets to be present on the page. - * @param mixed event paramater - */ - protected function preRenderControls($param) - { - $types = preg_split('/,|\s+/', $this->getPreRenderControlTypes()); - foreach($types as $type) - { - if(strlen($type)) - { - $control = Prado::createComponent(trim($type)); - $control->setPage($this->getPage()); - $control->onPreRender($param); - } - } - } } ?> \ No newline at end of file -- cgit v1.2.3