Skip to content

Commit d4900e8

Browse files
committed
Fixed remove
1 parent 69e0a7f commit d4900e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/server/Service.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* *
1414
* Hprose Service for Node.js. *
1515
* *
16-
* LastModified: Mar 29, 2018 *
16+
* LastModified: Apr 12, 2018 *
1717
* Author: Ma Bingyao <andot@hprose.com> *
1818
* *
1919
\**********************************************************/
@@ -519,9 +519,9 @@ function Service() {
519519
function remove(alias) {
520520
var name = alias.toLowerCase();
521521
if (_calls[name]) {
522-
var index = _name.indexOf(alias);
522+
var index = _names.indexOf(alias);
523523
if (index >= 0) {
524-
_name.splice(index, 1);
524+
_names.splice(index, 1);
525525
}
526526
delete _calls[name];
527527
}

0 commit comments

Comments
 (0)