1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00

RF: follow PsychoJS style guide

This commit is contained in:
Thomas Pronk 2021-06-10 13:13:41 +01:00
parent 170cf423d3
commit fb0b231014

View File

@ -261,10 +261,10 @@ export class TrialHandler extends PsychObject
*
* @param {boolean} newSeed - New value for seed
*/
setSeed(newSeed, log)
setSeed(seed, log)
{
this._setAttribute('seed', newSeed, log);
if (this.seed !== undefined)
this._setAttribute('seed', seed, log);
if (typeof this.seed !== 'undefined')
{
this._randomNumberGenerator = seedrandom(this.seed);
}