Skip to content

Commit 2143b38

Browse files
committed
Added destroy method
1 parent 183e685 commit 2143b38

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/display/RGB.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ var RGB = new Class({
196196
this.onChange();
197197
}
198198

199+
},
200+
201+
/**
202+
* Nulls any external references this object contains.
203+
*
204+
* @method Phaser.Display.RGB#destroy
205+
* @since 3.50.0
206+
*/
207+
destroy: function ()
208+
{
209+
this.onChangeCallback = null;
199210
}
200211

201212
});

0 commit comments

Comments
 (0)