public function getJs($name)
    {
        switch ($this->getType()) {
            case EventType::DEFAULT_ONCE:
                return $this->getEventJs($name, true);
            case EventType::DOM:
                return $this->getDomEventJs($name);
            case EventType::DOM_ONCE:
                return $this->getDomEventJs($name, true);
            case EventType::DEFAULT_EVENT:
            default:
                return $this->getEventJs($name);
        }
    }
public function getJs($name)
    {
        switch ($this->getType()) {
            case EventType::DEFAULT_ONCE:
                return $this->getEventJs($name, true);
            case EventType::DOM:
                return $this->getDomEventJs($name);
            case EventType::DOM_ONCE:
                return $this->getDomEventJs($name, true);
            case EventType::DEFAULT_EVENT:
            default:
                return $this->getEventJs($name);
        }
    }
public function getJs ( $ name ) { switch ( $ this -> getType ( ) ) { case EventType :: DEFAULT_ONCE : return $ this -> getEventJs ( $ name , true ) ; case EventType :: DOM : return $ this -> getDomEventJs ( $ name ) ; case EventType :: DOM_ONCE : return $ this -> getDomEventJs ( $ name , true ) ; case EventType :: DEFAULT_EVENT : default : return $ this -> getEventJs ( $ name ) ; } }
Returns the js code to attach a Google event or a Dom event to a js object

@param string $name the object name

@return string the js event
Returns the js code to attach a Google event or a Dom event to a js object