mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
better super calls
This commit is contained in:
parent
9a20589fd7
commit
388f449ab6
4 changed files with 17 additions and 17 deletions
|
@ -40,7 +40,7 @@ var Level = Sandbox.extend({
|
|||
this.initGoalData(options);
|
||||
this.initName(options);
|
||||
|
||||
Sandbox.prototype.initialize.apply(this, [options]);
|
||||
Level.__super__.initialize.apply(this, [options]);
|
||||
this.startOffCommand();
|
||||
},
|
||||
|
||||
|
@ -72,13 +72,13 @@ var Level = Sandbox.extend({
|
|||
takeControl: function() {
|
||||
Main.getEventBaton().stealBaton('processLevelCommand', this.processLevelCommand, this);
|
||||
|
||||
Sandbox.prototype.takeControl.apply(this);
|
||||
Level.__super__.takeControl.apply(this);
|
||||
},
|
||||
|
||||
releaseControl: function() {
|
||||
Main.getEventBaton().releaseBaton('processLevelCommand', this.processLevelCommand, this);
|
||||
|
||||
Sandbox.prototype.releaseControl.apply(this);
|
||||
Level.__super__.releaseControl.apply(this);
|
||||
},
|
||||
|
||||
startOffCommand: function() {
|
||||
|
@ -337,7 +337,7 @@ var Level = Sandbox.extend({
|
|||
reset: function() {
|
||||
this.gitCommandsIssued = 0;
|
||||
this.solved = false;
|
||||
Sandbox.prototype.reset.apply(this, arguments);
|
||||
Level.__super__.reset.apply(this, arguments);
|
||||
},
|
||||
|
||||
startLevel: function(command, deferred) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue