From 750ba5571ff5f37e45659acb927802cdd13f6a55 Mon Sep 17 00:00:00 2001 From: Tung Nguyen Date: Sat, 16 Sep 2017 15:54:53 +0700 Subject: [PATCH] fix(operation) RESTful.remove -> RESTful.delete (#132) In OperationProto class, deleteFn is incorrectly set to RESTful.remove, which is undefined, when socket is disconnected. --- client/modules/operation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/operation/index.js b/client/modules/operation/index.js index 3ce09db4..6d50f57f 100644 --- a/client/modules/operation/index.js +++ b/client/modules/operation/index.js @@ -105,7 +105,7 @@ function OperationProto(operation, data) { }); remover.on('disconnect', () => { - deleteFn = RESTful.remove; + deleteFn = RESTful.delete; }); }); }