mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 03:31:42 +00:00
fix js
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user