Reverted Vector3.setTo() implementation. Fixed an ESLint issue in RenderTexture.

This commit is contained in:
Chris Andrew 2018-05-23 18:37:32 +01:00
parent 8c3a9ea42b
commit 03fee98511
2 changed files with 1 additions and 18 deletions

View file

@ -178,7 +178,7 @@ var RenderTexture = new Class({
*/ */
preDestroy: function () preDestroy: function ()
{ {
if (this.renderer && this.renderer.gl) if (this.renderer && this.renderer.gl)
{ {
this.renderer.deleteTexture(this.texture); this.renderer.deleteTexture(this.texture);
this.renderer.deleteFramebuffer(this.framebuffer); this.renderer.deleteFramebuffer(this.framebuffer);

View file

@ -199,23 +199,6 @@ var Vector3 = new Class({
return this; return this;
}, },
/**
* This method is an alias for `Vector3.set`.
*
* @method Phaser.Math.Vector3#setTo
* @since 3.next
*
* @param {number} x - The x value to set for this Vector.
* @param {number} [y] - The y value to set for this Vector.
* @param {number} [z] - The z value to set for this Vector.
*
* @return {Phaser.Math.Vector3} This Vector3.
*/
setTo: function (x, y, z)
{
return this.set(x, y, z);
},
/** /**
* Add a given Vector to this Vector. Addition is component-wise. * Add a given Vector to this Vector. Addition is component-wise.
* *