mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-31 16:14:53 +02:00
awesome promise based interactive rebase with fail
This commit is contained in:
parent
79ee686721
commit
2b308e2ae9
14 changed files with 1731 additions and 296 deletions
|
@ -1,3 +1,5 @@
|
|||
var GitError = require('../util/errors').GitError;
|
||||
|
||||
var InteractiveRebaseView = Backbone.View.extend({
|
||||
tagName: 'div',
|
||||
template: _.template($('#interactive-rebase-template').html()),
|
||||
|
@ -8,7 +10,7 @@ var InteractiveRebaseView = Backbone.View.extend({
|
|||
|
||||
initialize: function(options) {
|
||||
this.hasClicked = false;
|
||||
this.rebaseCallback = options.callback;
|
||||
this.deferred = options.deferred;
|
||||
|
||||
this.rebaseArray = options.toRebase;
|
||||
|
||||
|
@ -71,10 +73,9 @@ var InteractiveRebaseView = Backbone.View.extend({
|
|||
}
|
||||
}, this);
|
||||
|
||||
this.rebaseCallback(toRebase);
|
||||
|
||||
this.$el.html('');
|
||||
this.deferred.resolve(toRebase);
|
||||
// garbage collection will get us
|
||||
this.$el.html('');
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue