enigma-bbs/core/standard_menu.js
Bryan Ashby 99ab60bf77 * Convert MenuModule to ES6 style class
* Convert modules that are MenuModule subclasses to ES6 style classes
* Convert mixins to ES6 style
* Various cleanup
2017-01-25 22:18:05 -07:00

28 lines
616 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);
});
}
};