Add Robot_JoyIt driver
This commit is contained in:
7
node_modules/jayson/lib/server/index.js
generated
vendored
7
node_modules/jayson/lib/server/index.js
generated
vendored
@@ -190,7 +190,9 @@ Server.prototype.removeMethod = function(name) {
|
||||
* @return {Method}
|
||||
*/
|
||||
Server.prototype.getMethod = function(name) {
|
||||
return this._methods[name];
|
||||
if (Object.prototype.hasOwnProperty.call(this._methods, name)) {
|
||||
return this._methods[name];
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -420,7 +422,8 @@ Server.prototype._batch = function(requests, context, callback) {
|
||||
|
||||
// only notifications in request means empty response
|
||||
if(!filtered.length) {
|
||||
return callback();
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
callback(null, filtered);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user