mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Added destroy method
This commit is contained in:
parent
183e68580f
commit
2143b38dc4
1 changed files with 11 additions and 0 deletions
|
@ -196,6 +196,17 @@ var RGB = new Class({
|
|||
this.onChange();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Nulls any external references this object contains.
|
||||
*
|
||||
* @method Phaser.Display.RGB#destroy
|
||||
* @since 3.50.0
|
||||
*/
|
||||
destroy: function ()
|
||||
{
|
||||
this.onChangeCallback = null;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue