diff --git a/src/index.html b/src/index.html index 7a075bf..06557f8 100644 --- a/src/index.html +++ b/src/index.html @@ -5,7 +5,9 @@ SpaceTac + + diff --git a/src/scripts/view/specs/TestGame.ts b/src/scripts/view/specs/TestGame.ts index ce4b9d2..3bd535a 100644 --- a/src/scripts/view/specs/TestGame.ts +++ b/src/scripts/view/specs/TestGame.ts @@ -18,8 +18,7 @@ module SpaceTac.View.Specs { orig_create.apply(state); func(game, state); done(); - game.state.clearCurrentState(); - // TODO Find a way to game.destroy (it causes an error currently) + setTimeout(() => {game.destroy();}, 1000); }; game.state.add("test", state);