summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
authorknut <>2008-07-30 01:43:12 +0000
committerknut <>2008-07-30 01:43:12 +0000
commit411fbb72f5a4c72e43af08ee403c79c73eb4b53f (patch)
tree3915b0d98ca3c0608b56ad280cb08b8837a43dea /framework/Web/UI/TClientScriptManager.php
parentd15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff)
fixed #890
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 6d4775bf..3a51bf76 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -115,7 +115,7 @@ class TClientScriptManager extends TApplicationComponent
{
if(!isset($this->_registeredPradoScripts[$name]))
{
- if(is_null(self::$_pradoScripts))
+ if(self::$_pradoScripts === null)
{
$packageFile = Prado::getFrameworkPath().DIRECTORY_SEPARATOR.self::SCRIPT_PATH.'/packages.php';
list($packages,$deps)= include($packageFile);
@@ -207,8 +207,9 @@ class TClientScriptManager extends TApplicationComponent
$assets = Prado::getApplication()->getAssetManager();
if(strpos($base, $assets->getBaseUrl())===false)
{
- if(!is_null($dir = Prado::getPathOfNameSpace($base)))
+ if(($dir = Prado::getPathOfNameSpace($base)) !== null) {
$base = $dir;
+ }
return array($assets->getPublishedPath($base), $assets->publishFilePath($base));
}
else
@@ -259,7 +260,9 @@ class TClientScriptManager extends TApplicationComponent
*/
public function registerPostBackControl($class,$options)
{
- if(is_null($class)) return;
+ if($class === null) {
+ return;
+ }
if(!isset($options['FormID']) && ($form=$this->_page->getForm())!==null)
$options['FormID']=$form->getClientID();
$optionString=TJavaScript::encode($options);