mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Frame.destroy
will now null the Frames reference to its parent texture, glTexture and clear the data and customData objects.
This commit is contained in:
parent
4faac7fcc3
commit
6c04d99039
1 changed files with 5 additions and 3 deletions
|
@ -707,16 +707,18 @@ var Frame = new Class({
|
|||
},
|
||||
|
||||
/**
|
||||
* Destroys this Frames references.
|
||||
* Destroys this Frame by nulling its reference to the parent Texture and and data objects.
|
||||
*
|
||||
* @method Phaser.Textures.Frame#destroy
|
||||
* @since 3.0.0
|
||||
*/
|
||||
destroy: function ()
|
||||
{
|
||||
this.texture = null;
|
||||
|
||||
this.source = null;
|
||||
this.texture = null;
|
||||
this.glTexture = null;
|
||||
this.customData = null;
|
||||
this.data = null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue