mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-22 11:45:43 +02:00
cute golf support
This commit is contained in:
parent
662ecf0949
commit
a5c0480962
7 changed files with 220 additions and 31 deletions
|
@ -72,7 +72,12 @@ LevelArbiter.prototype.getNextLevel = function(id) {
|
|||
if (!this.levelMap[id]) {
|
||||
throw new Error('that level doesnt exist!');
|
||||
}
|
||||
return this.levelMap[id]['nextLevelID'];
|
||||
var nextID = this.levelMap[id]['nextLevelID'];
|
||||
return this.levelMap[nextID];
|
||||
};
|
||||
|
||||
LevelArbiter.prototype.getNextLevelID = function(id) {
|
||||
return this.getNextLevel(id)['id'];
|
||||
};
|
||||
|
||||
exports.LevelArbiter = LevelArbiter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue