2015-04-21 04:50:58 +00:00
|
|
|
/* jslint node: true */
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var MenuModule = require('./menu_module.js').MenuModule;
|
|
|
|
|
|
|
|
exports.getModule = StandardMenuModule;
|
|
|
|
|
|
|
|
exports.moduleInfo = {
|
|
|
|
name : 'Standard Menu Module',
|
|
|
|
desc : 'A Menu Module capable of handing standard configurations',
|
|
|
|
author : 'NuSkooler',
|
|
|
|
};
|
|
|
|
|
|
|
|
function StandardMenuModule(menuConfig) {
|
|
|
|
MenuModule.call(this, menuConfig);
|
|
|
|
}
|
|
|
|
|
|
|
|
require('util').inherits(StandardMenuModule, MenuModule);
|
|
|
|
|
|
|
|
|
2016-02-03 04:35:59 +00:00
|
|
|
StandardMenuModule.prototype.enter = function() {
|
|
|
|
StandardMenuModule.super_.prototype.enter.call(this);
|
2015-04-21 04:50:58 +00:00
|
|
|
};
|
|
|
|
|
2016-06-29 05:07:33 +00:00
|
|
|
StandardMenuModule.prototype.beforeArt = function(cb) {
|
|
|
|
StandardMenuModule.super_.prototype.beforeArt.call(this, cb);
|
2015-04-21 04:50:58 +00:00
|
|
|
};
|
|
|
|
|
2015-07-30 04:09:51 +00:00
|
|
|
StandardMenuModule.prototype.mciReady = function(mciData, cb) {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
StandardMenuModule.super_.prototype.mciReady.call(this, mciData, function mciReadyComplete(err) {
|
|
|
|
if(err) {
|
|
|
|
cb(err);
|
|
|
|
} else {
|
|
|
|
// we do this so other modules can be both customized and still perform standard tasks
|
|
|
|
StandardMenuModule.super_.prototype.standardMCIReadyHandler.call(self, mciData, cb);
|
|
|
|
}
|
|
|
|
});
|
2015-04-21 04:50:58 +00:00
|
|
|
};
|