var COMMENTMENUNAME = "Commentmenu", COMMENTMENU; /** * Provides an in browser PDF editor. * * @module moodle-assignfeedback_editpdf-editor */ /** * COMMENTMENU * This is a drop down list of comment context functions. * * @namespace M.assignfeedback_editpdf * @class commentmenu * @constructor * @extends M.assignfeedback_editpdf.dropdown */ COMMENTMENU = function(config) { COMMENTMENU.superclass.constructor.apply(this, [config]); }; Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, { /** * Initialise the menu. * * @method initializer * @return void */ initializer : function(config) { var commentlinks, link, body, comment; comment = this.get('comment'); // Build the list of menu items. commentlinks = Y.Node.create('