Skip to content

Commit

Permalink
Made fromScene optional
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 26, 2021
1 parent 99db692 commit 55b69e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/gameobjects/GameObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,8 @@ var GameObject = new Class({
* @method Phaser.GameObjects.GameObject#destroy
* @fires Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
* @param {boolean} fromScene - True if this Game Object is destroyed from scene, false if not.
*
* @param {boolean} [fromScene=false] - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
destroy: function (fromScene)
{
Expand Down
8 changes: 4 additions & 4 deletions src/gameobjects/events/DESTROY_EVENT.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

/**
* The Game Object Destroy Event.
*
*
* This event is dispatched when a Game Object instance is being destroyed.
*
*
* Listen for it on a Game Object instance using `GameObject.on('destroy', listener)`.
*
* @event Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
*
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object which is being destroyed.
* @param {boolean} fromScene - True if this Game Object is destroyed from scene, false if not.
* @param {boolean} fromScene - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
module.exports = 'destroy';

0 comments on commit 55b69e5

Please sign in to comment.