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;
        }
    }
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;
        }
    }
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 ; } }
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
Initialises JS required fore the action menu . The JS is only required once as it manages all action menu s on the page .