1
0
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:
Eitan Hemed 2023-06-24 12:38:28 +00:00 committed by GitHub
parent c657ad6ee2
commit 6c7e8cf29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
: ',';
}
/**