mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 22:24:26 +02:00
ok i think everthing is wroking
This commit is contained in:
parent
f048f99e7f
commit
57a1905e7d
5 changed files with 8 additions and 8 deletions
|
@ -377,7 +377,7 @@ var Level = Sandbox.extend({
|
||||||
undo: function() {
|
undo: function() {
|
||||||
this.gitCommandsIssued.pop();
|
this.gitCommandsIssued.pop();
|
||||||
Level.__super__.undo.apply(this, arguments);
|
Level.__super__.undo.apply(this, arguments);
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
afterCommandCB: function(command) {
|
afterCommandCB: function(command) {
|
||||||
if (command.get('error')) {
|
if (command.get('error')) {
|
||||||
|
|
|
@ -82,7 +82,7 @@ var Sandbox = Backbone.View.extend({
|
||||||
Main.getEventBaton().stealBaton('levelExited', this.levelExited, this);
|
Main.getEventBaton().stealBaton('levelExited', this.levelExited, this);
|
||||||
|
|
||||||
this.insertGitShim();
|
this.insertGitShim();
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
releaseControl: function() {
|
releaseControl: function() {
|
||||||
// we will be handling commands that are submitted, mainly to add the sanadbox
|
// we will be handling commands that are submitted, mainly to add the sanadbox
|
||||||
|
|
|
@ -107,7 +107,7 @@ var MarkdownGrabber = ContainedBase.extend({
|
||||||
|
|
||||||
getRawText: function() {
|
getRawText: function() {
|
||||||
return this.$('textarea').val();
|
return this.$('textarea').val();
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
exportToArray: function() {
|
exportToArray: function() {
|
||||||
return this.getRawText().split('\n');
|
return this.getRawText().split('\n');
|
||||||
|
@ -163,7 +163,7 @@ var MarkdownPresenter = ContainedBase.extend({
|
||||||
|
|
||||||
grabText: function() {
|
grabText: function() {
|
||||||
return this.$('textarea').val();
|
return this.$('textarea').val();
|
||||||
}.bind(this)
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var DemonstrationBuilder = ContainedBase.extend({
|
var DemonstrationBuilder = ContainedBase.extend({
|
||||||
|
@ -243,7 +243,7 @@ var DemonstrationBuilder = ContainedBase.extend({
|
||||||
options: this.getExportObj()
|
options: this.getExportObj()
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
getExportObj: function() {
|
getExportObj: function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -296,7 +296,7 @@ var VisTag = VisBase.extend({
|
||||||
|
|
||||||
shouldDisableClick: function() {
|
shouldDisableClick: function() {
|
||||||
return this.get('isHead') && !this.gitEngine.getDetachedHead();
|
return this.get('isHead') && !this.gitEngine.getDetachedHead();
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
if (this.shouldDisableClick()) {
|
if (this.shouldDisableClick()) {
|
||||||
|
|
|
@ -99,7 +99,7 @@ var Visualization = Backbone.View.extend({
|
||||||
|
|
||||||
clearOrigin: function() {
|
clearOrigin: function() {
|
||||||
delete this.originVis;
|
delete this.originVis;
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
makeOrigin: function(options) {
|
makeOrigin: function(options) {
|
||||||
// oh god, here we go. We basically do a bizarre form of composition here,
|
// oh god, here we go. We basically do a bizarre form of composition here,
|
||||||
|
@ -196,7 +196,7 @@ var Visualization = Backbone.View.extend({
|
||||||
this.setTreeOpacity(1);
|
this.setTreeOpacity(1);
|
||||||
this.originToo('showHarsh', arguments);
|
this.originToo('showHarsh', arguments);
|
||||||
this.myResize();
|
this.myResize();
|
||||||
}.bind(this),
|
},
|
||||||
|
|
||||||
resetFromThisTreeNow: function(treeString) {
|
resetFromThisTreeNow: function(treeString) {
|
||||||
this.treeString = treeString;
|
this.treeString = treeString;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue