summaryrefslogtreecommitdiffstats
path: root/system/libraries/Javascript.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2011-12-26 15:56:00 +0100
committerAndrey Andreev <narf@bofh.bg>2011-12-26 15:56:00 +0100
commit92ba08a1b293ba46cecd21e5857c1e40c9e68ef9 (patch)
tree9d7ca357ae0dd4dd494d72131f17caea63ab0bd8 /system/libraries/Javascript.php
parentad47f94ce5bc7652710baa65fb924e0f10540bef (diff)
Replace private with protected, so the class can be easily extended
Diffstat (limited to 'system/libraries/Javascript.php')
-rw-r--r--system/libraries/Javascript.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Javascript.php b/system/libraries/Javascript.php
index 723b10679..074af948b 100644
--- a/system/libraries/Javascript.php
+++ b/system/libraries/Javascript.php
@@ -702,11 +702,11 @@ class CI_Javascript {
*
* Outputs an opening <script>
*
- * @access private
+ * @access protected
* @param string
* @return string
*/
- private function _open_script($src = '')
+ protected function _open_script($src = '')
{
return '<script type="text/javascript" charset="'.strtolower($this->CI->config->item('charset')).'"'
. ($src == '' ? '>' : ' src="'.$src.'">');
@@ -719,11 +719,11 @@ class CI_Javascript {
*
* Outputs an closing </script>
*
- * @access private
+ * @access protected
* @param string
* @return string
*/
- private function _close_script($extra = "\n")
+ protected function _close_script($extra = "\n")
{
return "</script>$extra";
}