Skip to content

Commit d19411e

Browse files
committed
Assign the default value of 60 FPS to the optional frameRate parameter, when ommited.
This patch tries to prevent an issue in the tween timeline data generation where an `undefined` value causes an unhandled type coercion when the program calculate how many frames will be generated for a given `TweenData` timeline.
1 parent 4a4d7d5 commit d19411e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tween/Tween.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ Phaser.Tween.prototype = {
835835
return null;
836836
}
837837

838+
if (typeof frameRate === 'undefined') { frameRate = 60; }
838839
if (typeof data === 'undefined') { data = []; }
839840

840841
// Populate the tween data

0 commit comments

Comments
 (0)