* Allow passing of arguments to menu's via menu.json including formatted parameters

* Fix menu.json setting of focus on view
This commit is contained in:
Bryan Ashby 2015-04-04 14:41:04 -06:00
parent ae71aa9feb
commit 113e16df0d
11 changed files with 131 additions and 108 deletions

View file

@ -3,17 +3,18 @@
var PluginModule = require('./plugin_module.js').PluginModule;
var theme = require('./theme.js');
var Log = require('./logger.js').log;
var async = require('async');
var assert = require('assert');
exports.MenuModule = MenuModule;
function MenuModule(menuConfig) {
PluginModule.call(this);
function MenuModule(options) {
PluginModule.call(this, options);
var self = this;
this.menuConfig = menuConfig;
this.menuConfig = options.menuConfig;
this.viewControllers = [];
@ -41,7 +42,7 @@ function MenuModule(menuConfig) {
callback(null);
}
],
function onComplete(err) {
function complete(err) {
if(err) {
// :TODO: Log me!!! ... and what else?
console.log(err);