From 3129cef42098493b8a67f872a405fc8b5251da0f Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sun, 26 Feb 2006 16:53:14 +0000
Subject: Fixed yet another bug in script rendering.

---
 framework/Web/UI/TClientScriptManager.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'framework/Web')

diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 35ba224d..a361d32e 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -124,8 +124,11 @@ class TClientScriptManager extends TApplicationComponent
 			$basePath=Prado::getFrameworkPath().'/'.self::SCRIPT_PATH;
 			foreach(self::$_pradoScripts[$name] as $script)
 			{
-				$this->publishFilePath($basePath.'/'.$script.'.js');
-				$this->_registeredPradoFiles[$script]=false;
+				if(!isset($this->_registeredPradoFiles[$script]))
+				{
+					$this->publishFilePath($basePath.'/'.$script.'.js');
+					$this->_registeredPradoFiles[$script]=false;
+				}
 			}
 		}
 	}
-- 
cgit v1.2.3