diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2013-05-18 16:22:00 +0200 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2013-05-18 16:43:44 +0200 |
commit | 86417d040ace56e213acdb2a5338cd409606a272 (patch) | |
tree | dc4bcbb9b36b5b301d5ef4925513ca16b36494a1 /system/libraries/Javascript.php | |
parent | 49bce11e2e959793fca2b31fa047f3e8d2533e46 (diff) |
$element not $focus there
and you can't have required params after an optional one
Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
Diffstat (limited to 'system/libraries/Javascript.php')
-rw-r--r-- | system/libraries/Javascript.php | 6 |
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 */ |