Implement RoutingProxy.prototype.remove

This commit is contained in:
Christian Tellnes 2012-05-17 05:44:56 +02:00
parent f223ce8b4e
commit 0532995dfa

View File

@ -120,7 +120,11 @@ RoutingProxy.prototype.add = function (options) {
// for the specified `options.host` and `options.port` (if they exist).
//
RoutingProxy.prototype.remove = function (options) {
var key = this._getKey(options);
var key = this._getKey(options),
proxy = this.proxies[key];
delete this.proxies[key];
return proxy;
};
//