original_string: public function require_js_init_call($function, array $extraarguments = null, $ondomready = false, array $module = null) {
          $js = new stdClass;
          $js->function = $function;
          $js->extraarguments = $extraarguments;
          $js->ondomready = $ondomready;
          $js->module = $module;
          $this->jsinitcalls[] = $js;
      }
code: public function require_js_init_call($function, array $extraarguments = null, $ondomready = false, array $module = null) {
          $js = new stdClass;
          $js->function = $function;
          $js->extraarguments = $extraarguments;
          $js->ondomready = $ondomready;
          $js->module = $module;
          $this->jsinitcalls[] = $js;
      }
code_tokens: public function require_js_init_call ( $ function , array $ extraarguments = null , $ ondomready = false , array $ module = null ) { $ js = new stdClass ; $ js -> function = $ function ; $ js -> extraarguments = $ extraarguments ; $ js -> ondomready = $ ondomready ; $ js -> module = $ module ; $ this -> jsinitcalls [ ] = $ js ; }
docstring: Adds a JS initialisation call to the page when the button is used.
  
  @param string $function The function to call
  @param array $extraarguments An array of arguments to pass to the function
  @param bool $ondomready If true the call is postponed until the DOM is finished loading
  @param array $module A module definition
docstring_tokens: Adds a JS initialisation call to the page when the button is used .