mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
Properly using the _addAttribute method
This commit is contained in:
parent
c657ad6ee2
commit
6c7e8cf29f
@ -90,6 +90,13 @@ export class ExperimentHandler extends PsychObject
|
||||
`${this._participant}_${this._experimentName}_${this._datetime}`
|
||||
);
|
||||
|
||||
this._addAttribute("field_separator",
|
||||
(typeof field_separator === "string" || field_separator.length === 1 || field_separator !== '\n')
|
||||
? field_separator
|
||||
: ',',
|
||||
','
|
||||
);
|
||||
|
||||
// loop handlers:
|
||||
this._loops = [];
|
||||
this._unfinishedLoops = [];
|
||||
@ -101,11 +108,7 @@ export class ExperimentHandler extends PsychObject
|
||||
|
||||
this._experimentEnded = false;
|
||||
|
||||
// assign output delimiter character
|
||||
this.field_separator = (typeof field_separator === "string" || field_separator.length === 1 || field_separator !== '\n')
|
||||
? field_separator
|
||||
: ',';
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user