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:
parent
170cf423d3
commit
fb0b231014
@ -261,10 +261,10 @@ export class TrialHandler extends PsychObject
|
|||||||
*
|
*
|
||||||
* @param {boolean} newSeed - New value for seed
|
* @param {boolean} newSeed - New value for seed
|
||||||
*/
|
*/
|
||||||
setSeed(newSeed, log)
|
setSeed(seed, log)
|
||||||
{
|
{
|
||||||
this._setAttribute('seed', newSeed, log);
|
this._setAttribute('seed', seed, log);
|
||||||
if (this.seed !== undefined)
|
if (typeof this.seed !== 'undefined')
|
||||||
{
|
{
|
||||||
this._randomNumberGenerator = seedrandom(this.seed);
|
this._randomNumberGenerator = seedrandom(this.seed);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user