This commit is contained in:
Ethan Buchman
2015-12-21 18:47:14 -05:00
parent dc75b71f55
commit 3fb3a81b92
3 changed files with 7 additions and 8 deletions

View File

@ -88,13 +88,11 @@ AppServer.prototype.createServer = function(){
// done decoding
conn.msgLength = 0
// NOTE: this throws of the "this"'s in app.js
//reqFunc = appCtx[reqType];
var res = function(){
if (args == null){
return appCtx[reqType]();
} else if (Array.isArray(args)){
return appCtx[reqType].apply(this, args);
return appCtx[reqType].apply(appCtx, args);
} else {
return appCtx[reqType](args)
}