summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-02-26 16:53:14 +0000
committerxue <>2006-02-26 16:53:14 +0000
commit3129cef42098493b8a67f872a405fc8b5251da0f (patch)
treedf851b07520e6a210abfccd951da9c703df91942 /framework
parent479683ba68d0b179105afd7e1f1d97b17730f7d3 (diff)
Fixed yet another bug in script rendering.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/TClientScriptManager.php7
1 files changed, 5 insertions, 2 deletions
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;
+ }
}
}
}