Skip to content

Commit a3469ad

Browse files
committed
The Tween.getValue method has been removed. It was a legacy function from Phaser 2 and always only returned the first TweenData from the data array, ignoring any subsequent properties or targets, making it redundant. Fix phaserjs#4717
1 parent a3c8bf2 commit a3469ad

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/tweens/tween/Tween.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -344,19 +344,6 @@ var Tween = new Class({
344344
this.callbackScope;
345345
},
346346

347-
/**
348-
* Returns the current value of the Tween.
349-
*
350-
* @method Phaser.Tweens.Tween#getValue
351-
* @since 3.0.0
352-
*
353-
* @return {number} The value of the Tween.
354-
*/
355-
getValue: function ()
356-
{
357-
return this.data[0].current;
358-
},
359-
360347
/**
361348
* Set the scale the time applied to this Tween. A value of 1 runs in real-time. A value of 0.5 runs 50% slower, and so on.
362349
*

0 commit comments

Comments
 (0)