Leaderboard extends Event Emitter, which was missing in the TypeScript defs. Fix #4703

This commit is contained in:
Richard Davey 2019-09-26 13:45:01 +01:00
parent 9485eef5c7
commit c59aa16bb4
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@
* Calling `gameStarted` in a game that doesn't load any assets would cause the error `{code: "INVALID_OPERATION", message: "Can not perform this operation before game start."}`. The plugin will now has a new internal method `gameStartedHandler` and will redirect the flow accordingly based on asset loading. Fix #4550 (thanks @bchee) * Calling `gameStarted` in a game that doesn't load any assets would cause the error `{code: "INVALID_OPERATION", message: "Can not perform this operation before game start."}`. The plugin will now has a new internal method `gameStartedHandler` and will redirect the flow accordingly based on asset loading. Fix #4550 (thanks @bchee)
* The documentation for the `chooseContext` method has been fixed. Fix #4425 (thanks @krzysztof-grzybek) * The documentation for the `chooseContext` method has been fixed. Fix #4425 (thanks @krzysztof-grzybek)
* `Leaderboard.getConnectedScores` incorrectly specified two parameters, neither of which were used. Fix #4702 (thanks @NokFrt) * `Leaderboard.getConnectedScores` incorrectly specified two parameters, neither of which were used. Fix #4702 (thanks @NokFrt)
* `Leaderboard` extends Event Emitter, which was missing in the TypeScript defs. Fix #4703 (thanks @NokFrt)
### New Features ### New Features

View file

@ -18,6 +18,7 @@ var LeaderboardScore = require('./LeaderboardScore');
* @class FacebookInstantGamesLeaderboard * @class FacebookInstantGamesLeaderboard
* @memberOf Phaser * @memberOf Phaser
* @constructor * @constructor
* @extends Phaser.Events.EventEmitter
* @since 3.13.0 * @since 3.13.0
* *
* @param {Phaser.FacebookInstantGamesPlugin} plugin - A reference to the Facebook Instant Games Plugin. * @param {Phaser.FacebookInstantGamesPlugin} plugin - A reference to the Facebook Instant Games Plugin.