mirror of https://github.com/grpc/grpc-node.git
				
				
				
			Merge pull request #629 from JustinBeckwith/bind
refactor: drop usage of _.bind
This commit is contained in:
		
						commit
						c637b26bee
					
				|  | @ -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; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue