enigma-bbs/core/standard_menu.js
Bryan Ashby e9787cee3e ENiGMA 1/2 WILL USE SPACES FROM THIS POINT ON VS TABS
* Really just to make GitHub formatting happy. Arg.
2018-06-21 23:15:04 -06:00

27 lines
703 B
JavaScript

/* jslint node: true */
'use strict';
const MenuModule = require('./menu_module.js').MenuModule;
exports.moduleInfo = {
name : 'Standard Menu Module',
desc : 'A Menu Module capable of handing standard configurations',
author : 'NuSkooler',
};
exports.getModule = class StandardMenuModule extends MenuModule {
constructor(options) {
super(options);
}
mciReady(mciData, cb) {
super.mciReady(mciData, err => {
if(err) {
return cb(err);
}
// we do this so other modules can be both customized and still perform standard tasks
return this.standardMCIReadyHandler(mciData, cb);
});
}
};