mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-01 10:14:28 +02:00
refactoring
This commit is contained in:
parent
2bee3d357a
commit
eba8734667
6 changed files with 72 additions and 59 deletions
|
@ -6648,7 +6648,7 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
initParseWaterfall: function(options) {
|
||||
this.parseWaterfall = new ParseWaterfall();
|
||||
Level.__super__.initParseWaterfall.apply(this, [options]);
|
||||
|
||||
// add our specific functionaity
|
||||
this.parseWaterfall.addFirst(
|
||||
|
@ -6779,10 +6779,9 @@ var Level = Sandbox.extend({
|
|||
|
||||
die: function() {
|
||||
this.levelToolbar.die();
|
||||
this.goalCanvasHolder.die();
|
||||
|
||||
this.goalDie();
|
||||
this.mainVis.die();
|
||||
this.goalVis.die();
|
||||
this.releaseControl();
|
||||
|
||||
this.clear();
|
||||
|
@ -6793,6 +6792,11 @@ var Level = Sandbox.extend({
|
|||
delete this.goalCanvasHolder;
|
||||
},
|
||||
|
||||
goalDie: function() {
|
||||
this.goalCanvasHolder.die();
|
||||
this.goalVis.die();
|
||||
},
|
||||
|
||||
getInstantCommands: function() {
|
||||
var hintMsg = (this.level.hint) ?
|
||||
this.level.hint :
|
||||
|
@ -19168,6 +19172,10 @@ var LevelBuilder = Level.extend({
|
|||
);
|
||||
},
|
||||
|
||||
initParseWaterfall: function() {
|
||||
LevelBuilder.__super__.initParseWaterfall.apply(this, [options]);
|
||||
},
|
||||
|
||||
takeControl: function() {
|
||||
Main.getEventBaton().stealBaton('processLevelBuilderCommand', this.processLevelCommand, this);
|
||||
|
||||
|
@ -19441,7 +19449,7 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
initParseWaterfall: function(options) {
|
||||
this.parseWaterfall = new ParseWaterfall();
|
||||
Level.__super__.initParseWaterfall.apply(this, [options]);
|
||||
|
||||
// add our specific functionaity
|
||||
this.parseWaterfall.addFirst(
|
||||
|
@ -19572,10 +19580,9 @@ var Level = Sandbox.extend({
|
|||
|
||||
die: function() {
|
||||
this.levelToolbar.die();
|
||||
this.goalCanvasHolder.die();
|
||||
|
||||
this.goalDie();
|
||||
this.mainVis.die();
|
||||
this.goalVis.die();
|
||||
this.releaseControl();
|
||||
|
||||
this.clear();
|
||||
|
@ -19586,6 +19593,11 @@ var Level = Sandbox.extend({
|
|||
delete this.goalCanvasHolder;
|
||||
},
|
||||
|
||||
goalDie: function() {
|
||||
this.goalCanvasHolder.die();
|
||||
this.goalVis.die();
|
||||
},
|
||||
|
||||
getInstantCommands: function() {
|
||||
var hintMsg = (this.level.hint) ?
|
||||
this.level.hint :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue