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

Commit

Permalink
Merge pull request #18 from ipfs/fix/bind
Browse files Browse the repository at this point in the history
remove the .bind because it makes babel freak out
  • Loading branch information
daviddias committed Apr 30, 2016
2 parents d9a9f08 + 6a72a23 commit 2968b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/block-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const async = require('async')
// datastore and may retrieve data from a remote Exchange.
// It uses an internal `datastore.Datastore` instance to store values.
function BlockService (ipfsRepo, exchange) {
this.addBlock = ipfsRepo.datastore.put.bind(ipfsRepo.datastore)
this.addBlock = ipfsRepo.datastore.put

this.addBlocks = (blocks, callback) => {
if (!Array.isArray(blocks)) {
Expand All @@ -18,7 +18,7 @@ function BlockService (ipfsRepo, exchange) {
}, callback)
}

this.getBlock = ipfsRepo.datastore.get.bind(ipfsRepo.datastore)
this.getBlock = ipfsRepo.datastore.get

this.getBlocks = (multihashes, extension, callback) => {
if (typeof extension === 'function') {
Expand All @@ -45,7 +45,7 @@ function BlockService (ipfsRepo, exchange) {
})
}

this.deleteBlock = ipfsRepo.datastore.delete.bind(ipfsRepo.datastore)
this.deleteBlock = ipfsRepo.datastore.delete

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

0 comments on commit 2968b6c

Please sign in to comment.