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

@ -118,12 +118,12 @@ var InteractiveRebaseView = ContainedBase.extend({
// control for button
var deferred = Q.defer();
deferred.promise
.then(_.bind(function() {
.then(function() {
this.confirm();
}, this))
.fail(_.bind(function() {
}.bind(this))
.fail(function() {
this.cancel();
}, this))
}.bind(this))
.done();
// finally get our buttons
@ -170,9 +170,9 @@ var RebaseEntryView = Backbone.View.extend({
// hacky :( who would have known jquery barfs on ids with %'s and quotes
this.listEntry = this.$el.children(':last');
this.listEntry.delegate('#toggleButton', 'click', _.bind(function() {
this.listEntry.delegate('#toggleButton', 'click', function() {
this.toggle();
}, this));
}.bind(this));
}
});