mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
34205a0789
1 changed files with 3 additions and 0 deletions
|
@ -326,7 +326,10 @@ module.exports = class SpellView extends View
|
|||
isCast = not _.isEmpty(aether.metrics) or _.some aether.problems.errors, {type: 'runtime'}
|
||||
@problems = []
|
||||
annotations = []
|
||||
seenProblemKeys = {}
|
||||
for aetherProblem, problemIndex in aether.getAllProblems()
|
||||
continue if aetherProblem.userInfo.key of seenProblemKeys
|
||||
seenProblemKeys[aetherProblem.userInfo.key] = true
|
||||
@problems.push problem = new Problem aether, aetherProblem, @ace, isCast and problemIndex is 0, isCast
|
||||
annotations.push problem.annotation if problem.annotation
|
||||
@aceSession.setAnnotations annotations
|
||||
|
|
Loading…
Reference in a new issue