mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
RF: use seed getter and setter via _addAttribute
This commit is contained in:
parent
148dda46ff
commit
6c292ea2d9
@ -82,7 +82,7 @@ export class TrialHandler extends PsychObject
|
||||
this._addAttribute('extraInfo', extraInfo);
|
||||
this._addAttribute('name', name);
|
||||
this._addAttribute('autoLog', autoLog);
|
||||
this.seed = seed;
|
||||
this._addAttribute('seed', seed);
|
||||
this._prepareTrialList(trialList);
|
||||
|
||||
// number of stimuli
|
||||
@ -261,7 +261,7 @@ export class TrialHandler extends PsychObject
|
||||
*
|
||||
* @param {boolean} newSeed - New value for seed
|
||||
*/
|
||||
set seed(newSeed)
|
||||
setSeed(newSeed)
|
||||
{
|
||||
this._seed = newSeed;
|
||||
if (this._seed !== undefined)
|
||||
@ -274,14 +274,6 @@ export class TrialHandler extends PsychObject
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the seed attribute.
|
||||
*/
|
||||
get seed()
|
||||
{
|
||||
return this._seed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for the finished attribute.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user