original_string: public function initialise_javascript(moodle_page $page) {
  
          $options = new stdClass;
          $options->client_id   = $this->cid;
          $options->commentarea = $this->commentarea;
          $options->itemid      = $this->itemid;
          $options->page        = 0;
          $options->courseid    = $this->courseid;
          $options->contextid   = $this->contextid;
          $options->component   = $this->component;
          $options->notoggle    = $this->notoggle;
          $options->autostart   = $this->autostart;
  
          $page->requires->js_init_call('M.core_comment.init', array($options), true);
  
          return true;
      }
code: public function initialise_javascript(moodle_page $page) {
  
          $options = new stdClass;
          $options->client_id   = $this->cid;
          $options->commentarea = $this->commentarea;
          $options->itemid      = $this->itemid;
          $options->page        = 0;
          $options->courseid    = $this->courseid;
          $options->contextid   = $this->contextid;
          $options->component   = $this->component;
          $options->notoggle    = $this->notoggle;
          $options->autostart   = $this->autostart;
  
          $page->requires->js_init_call('M.core_comment.init', array($options), true);
  
          return true;
      }
code_tokens: public function initialise_javascript ( moodle_page $ page ) { $ options = new stdClass ; $ options -> client_id = $ this -> cid ; $ options -> commentarea = $ this -> commentarea ; $ options -> itemid = $ this -> itemid ; $ options -> page = 0 ; $ options -> courseid = $ this -> courseid ; $ options -> contextid = $ this -> contextid ; $ options -> component = $ this -> component ; $ options -> notoggle = $ this -> notoggle ; $ options -> autostart = $ this -> autostart ; $ page -> requires -> js_init_call ( 'M.core_comment.init' , array ( $ options ) , true ) ; return true ; }
docstring: Initialises the JavaScript that enchances the comment API.
  
  @param moodle_page $page The moodle page object that the JavaScript should be
  initialised for.
docstring_tokens: Initialises the JavaScript that enchances the comment API .