Skip to content

Commit 9234fd1

Browse files
committed
Fix property name conflict in Phaser.Math.RandomDataGenerator#sign
Fixes phaserjs#3323
1 parent 9379714 commit 9234fd1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/math/random-data-generator/RandomDataGenerator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var RandomDataGenerator = new Class({
8585
* @type {array}
8686
* @since 3.0.0
8787
*/
88-
this.sign = [ -1, 1 ];
88+
this.signs = [ -1, 1 ];
8989

9090
if (seeds)
9191
{
@@ -171,7 +171,7 @@ var RandomDataGenerator = new Class({
171171

172172
/**
173173
* Reset the seed of the random data generator.
174-
*
174+
*
175175
* _Note_: the seed array is only processed up to the first `undefined` (or `null`) value, should such be present.
176176
*
177177
* @method Phaser.Math.RandomDataGenerator#sow
@@ -356,7 +356,7 @@ var RandomDataGenerator = new Class({
356356
*/
357357
sign: function ()
358358
{
359-
return this.pick(this.sign);
359+
return this.pick(this.signs);
360360
},
361361

362362
/**

0 commit comments

Comments
 (0)