Fix the spec to pass the test.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment