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

remove the .bind because it makes babel freak out #18

Merged
merged 1 commit into from
Apr 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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