Merge pull request #629 from JustinBeckwith/bind

refactor: drop usage of _.bind
This commit is contained in:
Michael Lumish 2018-11-14 15:29:28 -08:00 committed by GitHub
commit c637b26bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -903,10 +903,10 @@ Server.prototype.addService = function(service, implementation) {
' for ' + attrs.path + ' expected but not provided');
impl = defaultHandler[method_type];
} else {
impl = _.bind(implementation[attrs.originalName], implementation);
impl = implementation[attrs.originalName].bind(implementation);
}
} else {
impl = _.bind(implementation[name], implementation);
impl = implementation[name].bind(implementation);
}
var serialize = attrs.responseSerialize;
var deserialize = attrs.requestDeserialize;