Skip to content

Commit 046498d

Browse files
committed
Fixed Leaderboard namespace
1 parent c97a344 commit 046498d

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

plugins/fbinstant/src/FacebookInstantGamesPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ var FacebookInstantGamesPlugin = new Class({
279279
* Contains all of the leaderboard data, as populated by the `getLeaderboard()` method.
280280
*
281281
* @name Phaser.FacebookInstantGamesPlugin#leaderboards
282-
* @type {Phaser.FacebookInstantGamesPlugin.Leaderboard[]}
282+
* @type {Phaser.FacebookInstantGamesLeaderboard[]}
283283
* @since 3.13.0
284284
*/
285285
this.leaderboards = {};

plugins/fbinstant/src/Leaderboard.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ var LeaderboardScore = require('./LeaderboardScore');
1515
* You do not need to instantiate this class directly, it will be created when you use the
1616
* `getLeaderboard()` method of the main plugin.
1717
*
18-
* @class Leaderboard
19-
* @memberOf Phaser.FacebookInstantGamesPlugin
18+
* @class FacebookInstantGamesLeaderboard
19+
* @memberOf Phaser
2020
* @constructor
2121
* @since 3.13.0
2222
*
@@ -36,7 +36,7 @@ var Leaderboard = new Class({
3636
/**
3737
* A reference to the Facebook Instant Games Plugin.
3838
*
39-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#plugin
39+
* @name Phaser.FacebookInstantGamesLeaderboard#plugin
4040
* @type {Phaser.FacebookInstantGamesPlugin}
4141
* @since 3.13.0
4242
*/
@@ -45,7 +45,7 @@ var Leaderboard = new Class({
4545
/**
4646
* An Instant Game leaderboard instance.
4747
*
48-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#ref
48+
* @name Phaser.FacebookInstantGamesLeaderboard#ref
4949
* @type {any}
5050
* @since 3.13.0
5151
*/
@@ -54,7 +54,7 @@ var Leaderboard = new Class({
5454
/**
5555
* The name of the leaderboard.
5656
*
57-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#name
57+
* @name Phaser.FacebookInstantGamesLeaderboard#name
5858
* @type {string}
5959
* @since 3.13.0
6060
*/
@@ -63,7 +63,7 @@ var Leaderboard = new Class({
6363
/**
6464
* The ID of the context that the leaderboard is associated with, or null if the leaderboard is not tied to a particular context.
6565
*
66-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#contextID
66+
* @name Phaser.FacebookInstantGamesLeaderboard#contextID
6767
* @type {string}
6868
* @since 3.13.0
6969
*/
@@ -73,7 +73,7 @@ var Leaderboard = new Class({
7373
* The total number of player entries in the leaderboard.
7474
* This value defaults to zero. Populate it via the `getEntryCount()` method.
7575
*
76-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#entryCount
76+
* @name Phaser.FacebookInstantGamesLeaderboard#entryCount
7777
* @type {integer}
7878
* @since 3.13.0
7979
*/
@@ -83,7 +83,7 @@ var Leaderboard = new Class({
8383
* The players score object.
8484
* This value defaults to `null`. Populate it via the `getPlayerScore()` method.
8585
*
86-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#playerScore
86+
* @name Phaser.FacebookInstantGamesLeaderboard#playerScore
8787
* @type {LeaderboardScore}
8888
* @since 3.13.0
8989
*/
@@ -94,7 +94,7 @@ var Leaderboard = new Class({
9494
* This value defaults to an empty array. Populate it via the `getScores()` method.
9595
* The contents of this array are reset each time `getScores()` is called.
9696
*
97-
* @name Phaser.FacebookInstantGamesPlugin.Leaderboard#scores
97+
* @name Phaser.FacebookInstantGamesLeaderboard#scores
9898
* @type {LeaderboardScore[]}
9999
* @since 3.13.0
100100
*/
@@ -110,7 +110,7 @@ var Leaderboard = new Class({
110110
*
111111
* When the call completes this Leaderboard will emit the `getentrycount` event along with the count and name of the Leaderboard.
112112
*
113-
* @method Phaser.FacebookInstantGamesPlugin.Leaderboard#getEntryCount
113+
* @method Phaser.FacebookInstantGamesLeaderboard#getEntryCount
114114
* @since 3.13.0
115115
*
116116
* @return {this} This Leaderboard instance.
@@ -143,7 +143,7 @@ var Leaderboard = new Class({
143143
*
144144
* If the save fails the event will send `null` as the score value.
145145
*
146-
* @method Phaser.FacebookInstantGamesPlugin.Leaderboard#setScore
146+
* @method Phaser.FacebookInstantGamesLeaderboard#setScore
147147
* @since 3.13.0
148148
*
149149
* @param {integer} score - The new score for the player. Must be a 64-bit integer number.
@@ -194,7 +194,7 @@ var Leaderboard = new Class({
194194
*
195195
* If the player has not yet saved a score, the event will send `null` as the score value, and `playerScore` will be set to `null` as well.
196196
*
197-
* @method Phaser.FacebookInstantGamesPlugin.Leaderboard#getPlayerScore
197+
* @method Phaser.FacebookInstantGamesLeaderboard#getPlayerScore
198198
* @since 3.13.0
199199
*
200200
* @return {this} This Leaderboard instance.
@@ -233,7 +233,7 @@ var Leaderboard = new Class({
233233
*
234234
* When the call completes this Leaderboard will emit the `getscores` event along with an array of LeaderboardScore entries and the name of the Leaderboard.
235235
*
236-
* @method Phaser.FacebookInstantGamesPlugin.Leaderboard#getScores
236+
* @method Phaser.FacebookInstantGamesLeaderboard#getScores
237237
* @since 3.13.0
238238
*
239239
* @param {integer} [count=10] - The number of entries to attempt to fetch from the leaderboard. Currently, up to a maximum of 100 entries may be fetched per query.
@@ -274,7 +274,7 @@ var Leaderboard = new Class({
274274
*
275275
* When the call completes this Leaderboard will emit the `getconnectedscores` event along with an array of LeaderboardScore entries and the name of the Leaderboard.
276276
*
277-
* @method Phaser.FacebookInstantGamesPlugin.Leaderboard#getConnectedScores
277+
* @method Phaser.FacebookInstantGamesLeaderboard#getConnectedScores
278278
* @since 3.16.0
279279
*
280280
* @param {integer} [count=10] - The number of entries to attempt to fetch from the leaderboard. Currently, up to a maximum of 100 entries may be fetched per query.

0 commit comments

Comments
 (0)