original_string: public function initialise_js(moodle_page $page) {
          static $initialised = false;
          if (!$initialised) {
              $page->requires->yui_module('moodle-core-actionmenu', 'M.core.actionmenu.init');
              $initialised = true;
          }
      }
code: public function initialise_js(moodle_page $page) {
          static $initialised = false;
          if (!$initialised) {
              $page->requires->yui_module('moodle-core-actionmenu', 'M.core.actionmenu.init');
              $initialised = true;
          }
      }
code_tokens: public function initialise_js ( moodle_page $ page ) { static $ initialised = false ; if ( ! $ initialised ) { $ page -> requires -> yui_module ( 'moodle-core-actionmenu' , 'M.core.actionmenu.init' ) ; $ initialised = true ; } }
docstring: Initialises JS required fore the action menu.
  The JS is only required once as it manages all action menu's on the page.
  
  @param moodle_page $page
docstring_tokens: Initialises JS required fore the action menu . The JS is only required once as it manages all action menu s on the page .