b4202427 by Ryo Chikazawa Committed by Gary Katsevman

Fix the spec to pass the test.

1 parent b5498ea1
...@@ -1247,7 +1247,7 @@ test('can be disposed before finishing initialization', function() { ...@@ -1247,7 +1247,7 @@ test('can be disposed before finishing initialization', function() {
1247 ok(readyHandlers.length > 0, 'registered a ready handler'); 1247 ok(readyHandlers.length > 0, 'registered a ready handler');
1248 try { 1248 try {
1249 while (readyHandlers.length) { 1249 while (readyHandlers.length) {
1250 readyHandlers.shift()(); 1250 readyHandlers.shift().call(player);
1251 } 1251 }
1252 ok(true, 'did not throw an exception'); 1252 ok(true, 'did not throw an exception');
1253 } catch (e) { 1253 } catch (e) {
......