aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-21 01:06:32 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-21 01:06:32 +0800
commit2c193a1244d9f288c7c01142d42e442a687ce114 (patch)
treef2b4401c9a187a1f8873f837e6700a5872353309 /packages/0x.js/src
parentc4d10a6f2d14f23367500d4eb46de7097b00d209 (diff)
downloaddexon-0x-contracts-2c193a1244d9f288c7c01142d42e442a687ce114.tar.gz
dexon-0x-contracts-2c193a1244d9f288c7c01142d42e442a687ce114.tar.zst
dexon-0x-contracts-2c193a1244d9f288c7c01142d42e442a687ce114.zip
Remove redundant bind
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/order_watcher/expiration_watcher.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/0x.js/src/order_watcher/expiration_watcher.ts b/packages/0x.js/src/order_watcher/expiration_watcher.ts
index b211ee826..acc7e7e5d 100644
--- a/packages/0x.js/src/order_watcher/expiration_watcher.ts
+++ b/packages/0x.js/src/order_watcher/expiration_watcher.ts
@@ -22,9 +22,7 @@ export class ExpirationWatcher {
constructor(orderExpirationCheckingIntervalMs?: number) {
this.orderExpirationCheckingIntervalMs = orderExpirationCheckingIntervalMs ||
DEFAULT_ORDER_EXPIRATION_CHECKING_INTERVAL_MS;
- const scoreFunction = ((orderHash: string) => {
- return this.expiration[orderHash].toNumber();
- }).bind(this);
+ const scoreFunction = (orderHash: string) => this.expiration[orderHash].toNumber();
this.orderHashHeapByExpiration = new Heap(scoreFunction);
}
public subscribe(callback: (orderHash: string) => void): void {