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