Skip to content

Commit 1656415

Browse files
committed
Return defaultValue from defaultEmit()
`value` was never passed and would be undefined. Fixes #7016
1 parent 7be7ee5 commit 1656415

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/gameobjects/particles/EmitterOp.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,11 @@ var EmitterOp = new Class({
599599
* @method Phaser.GameObjects.Particles.EmitterOp#defaultEmit
600600
* @since 3.0.0
601601
*
602-
* @param {Phaser.GameObjects.Particles.Particle} particle - The particle.
603-
* @param {string} key - The name of the property.
604-
* @param {number} [value] - The current value of the property.
605-
*
606602
* @return {number} The new value of the property.
607603
*/
608-
defaultEmit: function (particle, key, value)
604+
defaultEmit: function ()
609605
{
610-
return value;
606+
return this.defaultValue;
611607
},
612608

613609
/**

0 commit comments

Comments
 (0)