Skip to content

Commit

Permalink
Fix property name conflict in Phaser.Math.RandomDataGenerator#sign
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Mar 5, 2018
1 parent 9379714 commit 9234fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/math/random-data-generator/RandomDataGenerator.js
Expand Up @@ -85,7 +85,7 @@ var RandomDataGenerator = new Class({
* @type {array}
* @since 3.0.0
*/
this.sign = [ -1, 1 ];
this.signs = [ -1, 1 ];

if (seeds)
{
Expand Down Expand Up @@ -171,7 +171,7 @@ var RandomDataGenerator = new Class({

/**
* Reset the seed of the random data generator.
*
*
* _Note_: the seed array is only processed up to the first `undefined` (or `null`) value, should such be present.
*
* @method Phaser.Math.RandomDataGenerator#sow
Expand Down Expand Up @@ -356,7 +356,7 @@ var RandomDataGenerator = new Class({
*/
sign: function ()
{
return this.pick(this.sign);
return this.pick(this.signs);
},

/**
Expand Down

0 comments on commit 9234fd1

Please sign in to comment.