mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
last bit before removing level arbiter
This commit is contained in:
parent
3e657e03b0
commit
0eade399d2
2 changed files with 12 additions and 1 deletions
|
@ -9,7 +9,7 @@ var log = require('../log');
|
|||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../sandbox/').Sandbox;
|
||||
var GlobalStateActions = require('../actions/GlobalStateActions');
|
||||
|
||||
var LevelActions = require('../actions/LevelActions');
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var DisabledMap = require('../level/disabledMap').DisabledMap;
|
||||
var GitShim = require('../git/gitShim').GitShim;
|
||||
|
@ -415,6 +415,7 @@ var Level = Sandbox.extend({
|
|||
this.solved = true;
|
||||
if (!this.isShowingSolution) {
|
||||
Main.getEvents().trigger('levelSolved', this.level.id);
|
||||
LevelActions.setLevelSolved(this.level.id);
|
||||
log.levelSolved(this.getEnglishName());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue