aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/contract_wrappers/token_wrapper.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-17 14:19:15 +0800
committerFabio Berger <me@fabioberger.com>2017-12-17 14:19:15 +0800
commit4a73c05435a653565a92aedfbf56d45997f0673f (patch)
treecb7e848c85de4d5a10e8a30355aa460250d09ef5 /packages/0x.js/src/contract_wrappers/token_wrapper.ts
parentfe8f2d87c79cb25a7879c2e737dbdd64b7c40f60 (diff)
downloaddexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar.gz
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar.bz2
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar.lz
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar.xz
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.tar.zst
dexon-sol-tools-4a73c05435a653565a92aedfbf56d45997f0673f.zip
Fix documentation issue where `unsubscribeAll` shown as method on every contractWrapper instance even though it's only used by Exchange and Token wrappers.
Diffstat (limited to 'packages/0x.js/src/contract_wrappers/token_wrapper.ts')
-rw-r--r--packages/0x.js/src/contract_wrappers/token_wrapper.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/0x.js/src/contract_wrappers/token_wrapper.ts b/packages/0x.js/src/contract_wrappers/token_wrapper.ts
index d1553fa7b..eccb74871 100644
--- a/packages/0x.js/src/contract_wrappers/token_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/token_wrapper.ts
@@ -282,6 +282,12 @@ export class TokenWrapper extends ContractWrapper {
this._unsubscribe(subscriptionToken);
}
/**
+ * Cancels all existing subscriptions
+ */
+ public unsubscribeAll(): void {
+ super.unsubscribeAll();
+ }
+ /**
* Gets historical logs without creating a subscription
* @param tokenAddress An address of the token that emmited the logs.
* @param eventName The token contract event you would like to subscribe to.