got rid of every underscore bind i think -- 1500 line diff

This commit is contained in:
Peter Cottle 2015-04-20 16:41:56 +10:00
parent 3833319476
commit 2257668f9d
21 changed files with 229 additions and 230 deletions

View file

@ -1,4 +1,3 @@
var _ = require('underscore');
var Backbone = require('backbone');
var Q = require('q');
@ -111,7 +110,7 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
var startTime = new Date().getTime();
util.splitTextCommand(value, function(commandStr) {
chain = chain.then(_.bind(function() {
chain = chain.then(function() {
var commandObj = new Command({
rawStr: commandStr
});
@ -119,7 +118,7 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
var thisDeferred = Q.defer();
this.gitEngine.dispatch(commandObj, thisDeferred);
return thisDeferred.promise;
}, this));
}.bind(this));
}, this);
chain.then(function() {