mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-30 06:39:49 +02:00
got rid of every underscore bind i think -- 1500 line diff
This commit is contained in:
parent
3833319476
commit
2257668f9d
21 changed files with 229 additions and 230 deletions
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue