mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Swapped to new event handler
This commit is contained in:
parent
9495b92101
commit
3fb0f7c57b
1 changed files with 5 additions and 1 deletions
|
@ -28,6 +28,10 @@ var Purchase = require('./Purchase');
|
|||
* If this is unavailable please check to make sure you're using a build of Phaser that has
|
||||
* this plugin within it. You can quickly check this by looking at the dev tools console
|
||||
* header - the Phaser version number will have `-FB` after it if this plugin is loaded.
|
||||
*
|
||||
* If you are building your own version of Phaser then use this Webpack DefinePlugin flag:
|
||||
*
|
||||
* `"typeof PLUGIN_FBINSTANT": JSON.stringify(true)`
|
||||
*
|
||||
* You will find that every Instant Games API method has a mapping in this plugin.
|
||||
* For a full list please consult either the plugin documentation, or the 6.2 SDK documentation
|
||||
|
@ -683,7 +687,7 @@ var FacebookInstantGamesPlugin = new Class({
|
|||
|
||||
scene.load.image(key, this.playerPhotoURL);
|
||||
|
||||
scene.load.on('complete', function ()
|
||||
scene.load.once('filecomplete_image_' + key, function ()
|
||||
{
|
||||
this.emit('photocomplete', key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue