diff options
author | Jacob Evans <jacob@dekz.net> | 2017-11-15 10:20:31 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2017-11-15 10:20:31 +0800 |
commit | 3f39b22a680958988fbd7a8382dcd8d26420307f (patch) | |
tree | 893b4ca6e01725d6fed008b3d6c3cac5a146b4f0 /packages/0x.js/src | |
parent | 752603284de28f8d966fe61a52d0ffe5dd8afd6a (diff) | |
download | dexon-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.ts | 3 |
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]; |