diff options
author | xue <> | 2006-02-26 16:53:14 +0000 |
---|---|---|
committer | xue <> | 2006-02-26 16:53:14 +0000 |
commit | 3129cef42098493b8a67f872a405fc8b5251da0f (patch) | |
tree | df851b07520e6a210abfccd951da9c703df91942 /framework | |
parent | 479683ba68d0b179105afd7e1f1d97b17730f7d3 (diff) |
Fixed yet another bug in script rendering.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 7 |
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; + } } } } |