mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
Issue 106 exit button on first slide
This commit is contained in:
parent
31ad2a586b
commit
e99dce8948
10 changed files with 59 additions and 20 deletions
|
@ -10364,6 +10364,10 @@ var PositiveNegativeBase = BaseView.extend({
|
|||
this.navEvents.trigger('positive');
|
||||
},
|
||||
|
||||
exit: function() {
|
||||
this.navEvents.trigger('exit');
|
||||
},
|
||||
|
||||
negative: function() {
|
||||
this.navEvents.trigger('negative');
|
||||
}
|
||||
|
@ -10462,9 +10466,15 @@ var LeftRightView = PositiveNegativeBase.extend({
|
|||
template: _.template($('#left-right-template').html()),
|
||||
events: {
|
||||
'click .left': 'negative',
|
||||
'click .exit': 'exit',
|
||||
'click .right': 'positive'
|
||||
},
|
||||
|
||||
exit: function() {
|
||||
this.pipeEvents.trigger('exit');
|
||||
LeftRightView.__super__.exit.apply(this);
|
||||
},
|
||||
|
||||
positive: function() {
|
||||
this.pipeEvents.trigger('positive');
|
||||
LeftRightView.__super__.positive.apply(this);
|
||||
|
@ -14609,6 +14619,7 @@ var MultiView = Backbone.View.extend({
|
|||
this.navEvents.on('negative', this.getNegFunc(), this);
|
||||
this.navEvents.on('positive', this.getPosFunc(), this);
|
||||
this.navEvents.on('quit', this.finish, this);
|
||||
this.navEvents.on('exit', this.finish, this);
|
||||
|
||||
this.keyboardListener = new KeyboardListener({
|
||||
events: this.navEvents,
|
||||
|
@ -30265,6 +30276,10 @@ var PositiveNegativeBase = BaseView.extend({
|
|||
this.navEvents.trigger('positive');
|
||||
},
|
||||
|
||||
exit: function() {
|
||||
this.navEvents.trigger('exit');
|
||||
},
|
||||
|
||||
negative: function() {
|
||||
this.navEvents.trigger('negative');
|
||||
}
|
||||
|
@ -30363,9 +30378,15 @@ var LeftRightView = PositiveNegativeBase.extend({
|
|||
template: _.template($('#left-right-template').html()),
|
||||
events: {
|
||||
'click .left': 'negative',
|
||||
'click .exit': 'exit',
|
||||
'click .right': 'positive'
|
||||
},
|
||||
|
||||
exit: function() {
|
||||
this.pipeEvents.trigger('exit');
|
||||
LeftRightView.__super__.exit.apply(this);
|
||||
},
|
||||
|
||||
positive: function() {
|
||||
this.pipeEvents.trigger('positive');
|
||||
LeftRightView.__super__.positive.apply(this);
|
||||
|
@ -31458,6 +31479,7 @@ var MultiView = Backbone.View.extend({
|
|||
this.navEvents.on('negative', this.getNegFunc(), this);
|
||||
this.navEvents.on('positive', this.getPosFunc(), this);
|
||||
this.navEvents.on('quit', this.finish, this);
|
||||
this.navEvents.on('exit', this.finish, this);
|
||||
|
||||
this.keyboardListener = new KeyboardListener({
|
||||
events: this.navEvents,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue