From c8ae832e160d1b873034efbb04ad94e1003d4143 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 18 Feb 2006 23:24:43 +0000 Subject: cleaning up TClientScriptManager. --- framework/Web/UI/WebControls/TTextHighlighter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/TTextHighlighter.php b/framework/Web/UI/WebControls/TTextHighlighter.php index cedc807f..4aa01dc4 100644 --- a/framework/Web/UI/WebControls/TTextHighlighter.php +++ b/framework/Web/UI/WebControls/TTextHighlighter.php @@ -168,8 +168,7 @@ class TTextHighlighter extends TWebControl protected function getHeaderTemplate() { $id = $this->getClientID(); - $cs = $this->getPage()->getClientScript(); - return $cs->renderJavascriptBlock("new Prado.WebUI.TTextHighlighter('{$id}');"); + return TJavaScript::renderScriptBlock("new Prado.WebUI.TTextHighlighter('{$id}');"); } } ?> \ No newline at end of file -- cgit v1.2.3