better super calls

This commit is contained in:
Peter Cottle 2013-01-06 14:48:04 -08:00
parent 9a20589fd7
commit 388f449ab6
4 changed files with 17 additions and 17 deletions

View file

@ -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) {