Skip to content

Commit ab92449

Browse files
committed
Added optional data object to stop method
1 parent eca54ab commit ab92449

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/scene/ScenePlugin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,14 +601,15 @@ var ScenePlugin = new Class({
601601
* @since 3.0.0
602602
*
603603
* @param {string} [key] - The Scene to stop.
604+
* @param {any} [data] - Optional data object to pass to Scene.Systems.shutdown.
604605
*
605606
* @return {Phaser.Scenes.ScenePlugin} This ScenePlugin object.
606607
*/
607-
stop: function (key)
608+
stop: function (key, data)
608609
{
609610
if (key === undefined) { key = this.key; }
610611

611-
this.manager.queueOp('stop', key);
612+
this.manager.queueOp('stop', key, data);
612613

613614
return this;
614615
},

0 commit comments

Comments
 (0)