Added destroy method

This commit is contained in:
Richard Davey 2020-09-22 12:47:51 +01:00
parent 183e68580f
commit 2143b38dc4

View file

@ -196,6 +196,17 @@ var RGB = new Class({
this.onChange(); this.onChange();
} }
},
/**
* Nulls any external references this object contains.
*
* @method Phaser.Display.RGB#destroy
* @since 3.50.0
*/
destroy: function ()
{
this.onChangeCallback = null;
} }
}); });