We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca54ab commit ab92449Copy full SHA for ab92449
1 file changed
src/scene/ScenePlugin.js
@@ -601,14 +601,15 @@ var ScenePlugin = new Class({
601
* @since 3.0.0
602
*
603
* @param {string} [key] - The Scene to stop.
604
+ * @param {any} [data] - Optional data object to pass to Scene.Systems.shutdown.
605
606
* @return {Phaser.Scenes.ScenePlugin} This ScenePlugin object.
607
*/
- stop: function (key)
608
+ stop: function (key, data)
609
{
610
if (key === undefined) { key = this.key; }
611
- this.manager.queueOp('stop', key);
612
+ this.manager.queueOp('stop', key, data);
613
614
return this;
615
},
0 commit comments