protected function getFunction()
    {
        $events = $this->getEvents();
		foreach ($events as $event=>$function){
			if(is_array($function)){
				foreach($function as $f){
					$function_str.=$f.";";
				}
				$func .= " $event=\"$function_str\"";
			}else{
				$func .= " $event=\"$function\"";
			}
		}
        return $func;
    }
protected function getFunction()
    {
        $events = $this->getEvents();
		foreach ($events as $event=>$function){
			if(is_array($function)){
				foreach($function as $f){
					$function_str.=$f.";";
				}
				$func .= " $event=\"$function_str\"";
			}else{
				$func .= " $event=\"$function\"";
			}
		}
        return $func;
    }
protected function getFunction ( ) { $ events = $ this -> getEvents ( ) ; foreach ( $ events as $ event => $ function ) { if ( is_array ( $ function ) ) { foreach ( $ function as $ f ) { $ function_str .= $ f . ";" ; } $ func .= " $event=\"$function_str\"" ; } else { $ func .= " $event=\"$function\"" ; } } return $ func ; }
Get function of element in JavaScript format

@return string
Get function of element in JavaScript format