protected function updateScriptEvents()
    {
        if (!$this->control || !ScriptLabel::isEventLabel($this->labelName)) {
            return $this;
        }
        if ($this->control instanceof Scriptable) {
            $this->control->setScriptEvents(true);
        }
        return $this;
    }
protected function updateScriptEvents()
    {
        if (!$this->control || !ScriptLabel::isEventLabel($this->labelName)) {
            return $this;
        }
        if ($this->control instanceof Scriptable) {
            $this->control->setScriptEvents(true);
        }
        return $this;
    }
protected function updateScriptEvents ( ) { if ( ! $ this -> control || ! ScriptLabel :: isEventLabel ( $ this -> labelName ) ) { return $ this ; } if ( $ this -> control instanceof Scriptable ) { $ this -> control -> setScriptEvents ( true ) ; } return $ this ; }
Enable Script Events on the Control if needed

@return static
Enable Script Events on the Control if needed