Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 2968b6c

Browse files
committed
Merge pull request #18 from ipfs/fix/bind
remove the .bind because it makes babel freak out
2 parents d9a9f08 + 6a72a23 commit 2968b6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/block-service.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const async = require('async')
66
// datastore and may retrieve data from a remote Exchange.
77
// It uses an internal `datastore.Datastore` instance to store values.
88
function BlockService (ipfsRepo, exchange) {
9-
this.addBlock = ipfsRepo.datastore.put.bind(ipfsRepo.datastore)
9+
this.addBlock = ipfsRepo.datastore.put
1010

1111
this.addBlocks = (blocks, callback) => {
1212
if (!Array.isArray(blocks)) {
@@ -18,7 +18,7 @@ function BlockService (ipfsRepo, exchange) {
1818
}, callback)
1919
}
2020

21-
this.getBlock = ipfsRepo.datastore.get.bind(ipfsRepo.datastore)
21+
this.getBlock = ipfsRepo.datastore.get
2222

2323
this.getBlocks = (multihashes, extension, callback) => {
2424
if (typeof extension === 'function') {
@@ -45,7 +45,7 @@ function BlockService (ipfsRepo, exchange) {
4545
})
4646
}
4747

48-
this.deleteBlock = ipfsRepo.datastore.delete.bind(ipfsRepo.datastore)
48+
this.deleteBlock = ipfsRepo.datastore.delete
4949

5050
this.deleteBlocks = (multihashes, extension, callback) => {
5151
if (typeof extension === 'function') {

0 commit comments

Comments
 (0)