2015-04-21 04:50:58 +00:00
|
|
|
/* jslint node: true */
|
|
|
|
'use strict';
|
|
|
|
|
2017-01-26 05:18:05 +00:00
|
|
|
const MenuModule = require('./menu_module.js').MenuModule;
|
2015-04-21 04:50:58 +00:00
|
|
|
|
|
|
|
exports.moduleInfo = {
|
|
|
|
name : 'Standard Menu Module',
|
|
|
|
desc : 'A Menu Module capable of handing standard configurations',
|
|
|
|
author : 'NuSkooler',
|
|
|
|
};
|
|
|
|
|
2017-01-26 05:18:05 +00:00
|
|
|
exports.getModule = class StandardMenuModule extends MenuModule {
|
|
|
|
constructor(options) {
|
|
|
|
super(options);
|
|
|
|
}
|
2015-04-21 04:50:58 +00:00
|
|
|
|
2017-01-26 05:18:05 +00:00
|
|
|
mciReady(mciData, cb) {
|
|
|
|
super.mciReady(mciData, err => {
|
|
|
|
if(err) {
|
|
|
|
return cb(err);
|
|
|
|
}
|
2015-04-21 04:50:58 +00:00
|
|
|
|
2015-07-30 04:09:51 +00:00
|
|
|
// we do this so other modules can be both customized and still perform standard tasks
|
2017-01-26 05:18:05 +00:00
|
|
|
return this.standardMCIReadyHandler(mciData, cb);
|
|
|
|
});
|
|
|
|
}
|
2015-04-21 04:50:58 +00:00
|
|
|
};
|