summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/TJavaScript.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/Web/Javascripts/TJavaScript.php
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Web/Javascripts/TJavaScript.php')
-rw-r--r--framework/Web/Javascripts/TJavaScript.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/TJavaScript.php b/framework/Web/Javascripts/TJavaScript.php
index eedeb5a2..847903a7 100644
--- a/framework/Web/Javascripts/TJavaScript.php
+++ b/framework/Web/Javascripts/TJavaScript.php
@@ -9,6 +9,10 @@
* @package Prado\Web\Javascripts
*/
+namespace Prado\Web\Javascripts;
+use Prado\Web\THttpUtility;
+use Prado\Prado;
+
/**
* TJavaScript class.
*
@@ -291,7 +295,7 @@ class TJavaScript
$msg = 'Unknown error';
break;
}
- throw new Exception("JSON error ($err): $msg");
+ throw new \Exception("JSON error ($err): $msg");
}
/**
@@ -302,7 +306,6 @@ class TJavaScript
*/
public static function JSMin($code)
{
- Prado::using('System.Web.Javascripts.JSMin');
return JSMin::minify($code);
}
}