summaryrefslogtreecommitdiffstats
path: root/system/libraries/Javascript.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-07-17 19:08:33 +0200
committerAndrey Andreev <narf@devilix.net>2013-07-17 19:08:33 +0200
commit903f31bd683084d96909f2b14acadfe5c34b4c41 (patch)
tree3700f16dfc788bb4ae05ce05912754564565ab00 /system/libraries/Javascript.php
parente18de50dc1a4369aef18df9b368f8bfb0f9177d9 (diff)
parent164a1f28dd8f8093d260748e0d85fa714f232a57 (diff)
Merge pull request #2447 from rlerdorf/develop
A few minor fixes and cleanups
Diffstat (limited to 'system/libraries/Javascript.php')
-rw-r--r--system/libraries/Javascript.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Javascript.php b/system/libraries/Javascript.php
index 773a58384..6d2b99bbf 100644
--- a/system/libraries/Javascript.php
+++ b/system/libraries/Javascript.php
@@ -172,7 +172,7 @@ class CI_Javascript {
*/
public function focus($element = 'this', $js = '')
{
- return $this->js->__add_event($focus, $js);
+ return $this->js->__add_event($element, $js);
}
// --------------------------------------------------------------------
@@ -187,7 +187,7 @@ class CI_Javascript {
* @param string - Javascript code for mouse out
* @return string
*/
- public function hover($element = 'this', $over, $out)
+ public function hover($element = 'this', $over = '', $out = '')
{
return $this->js->__hover($element, $over, $out);
}
@@ -844,4 +844,4 @@ class CI_Javascript {
}
/* End of file Javascript.php */
-/* Location: ./system/libraries/Javascript.php */ \ No newline at end of file
+/* Location: ./system/libraries/Javascript.php */