From 405c21cba4dec3cb8258cf608b30dc42c1b592e3 Mon Sep 17 00:00:00 2001
From: Matt Lott <mattlott@live.com>
Date: Tue, 30 Sep 2014 10:15:33 -0700
Subject: [PATCH] Clean up sync world running GoalManager creation

---
 app/lib/Angel.coffee | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/app/lib/Angel.coffee b/app/lib/Angel.coffee
index c504ee802..39059ea7b 100644
--- a/app/lib/Angel.coffee
+++ b/app/lib/Angel.coffee
@@ -238,10 +238,7 @@ module.exports = class Angel extends CocoClass
     work.testWorld = testWorld = new World work.userCodeMap
     testWorld.loadFromLevel work.level
     if @shared.goalManager
-      # TODO: Do we need to create testGM via @shared.goalManager.constructor for some scenario?
-      # TODO: It breaks IE9, because @world is undefined in GoalManager.initThangTeams()
-      # testGM = new @shared.goalManager.constructor @testWorld
-      testGM = new GoalManager(work.testWorld)
+      testGM = new GoalManager(testWorld)
       testGM.setGoals work.goals
       testGM.setCode work.userCodeMap
       testGM.worldGenerationWillBegin()