aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-15 10:20:31 +0800
committerJacob Evans <jacob@dekz.net>2017-11-15 10:20:31 +0800
commit3f39b22a680958988fbd7a8382dcd8d26420307f (patch)
tree893b4ca6e01725d6fed008b3d6c3cac5a146b4f0 /packages/0x.js/src
parent752603284de28f8d966fe61a52d0ffe5dd8afd6a (diff)
downloaddexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar.gz
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar.bz2
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar.lz
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar.xz
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.tar.zst
dexon-sol-tools-3f39b22a680958988fbd7a8382dcd8d26420307f.zip
separate assignment and call
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/contract_wrappers/contract_wrapper.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
index bd65c8eb3..7997b1647 100644
--- a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
@@ -52,7 +52,8 @@ export class ContractWrapper {
throw new Error(ZeroExError.SubscriptionNotFound);
}
if (!_.isUndefined(err)) {
- this._filterCallbacks[filterToken](err, undefined);
+ const callback = this._filterCallbacks[filterToken];
+ callback(err, undefined);
}
delete this._filters[filterToken];
delete this._filterCallbacks[filterToken];