Skip to content

Commit

Permalink
Bind this to promises
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Grove committed Apr 27, 2016
1 parent 1cc0b7c commit 3d39ff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ RapidMango.prototype.download = function download() {
});
});
});
});
}).bind(this);
};

function RapidMango(options) {
Expand Down Expand Up @@ -273,7 +273,7 @@ RapidMango.prototype.install = function install() {
return fs.unlinkAsync(archiveFilename);
});
});
});
}).bind(this);
};

RapidMango.prototype.start = function start() {
Expand Down Expand Up @@ -341,7 +341,7 @@ RapidMango.prototype.start = function start() {
});
});
return promise;
});
}).bind(this);
};

RapidMango.prototype.stop = function stop() {
Expand All @@ -354,7 +354,7 @@ RapidMango.prototype.stop = function stop() {
reject(err);
});
self.child.kill();
})
}
}).bind(this);
};

module.exports = RapidMango;

0 comments on commit 3d39ff2

Please sign in to comment.