From 58f4af0f110d552d0b04eade41eb4139ecbcaabf Mon Sep 17 00:00:00 2001 From: ENiGMA BBS Date: Sat, 5 Dec 2015 23:22:23 -0700 Subject: [PATCH] * Fix defaultHandlerMissingMod for menu load error --- core/menu_stack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/menu_stack.js b/core/menu_stack.js index eebfbaec..f8bc18f6 100644 --- a/core/menu_stack.js +++ b/core/menu_stack.js @@ -107,7 +107,7 @@ MenuStack.prototype.goto = function(name, options, cb) { loadMenu(loadOpts, function menuLoaded(err, modInst) { if(err) { - var errCb = cb || currentModuleInfo.instance.defaultHandlerMissingMod(); + var errCb = cb || self.client.defaultHandlerMissingMod(); errCb(err); } else { // :TODO: Move this log to caller