From 598fa080ee9c6e88a4f7b6fb470dc7b148d4534d Mon Sep 17 00:00:00 2001 From: Alain Pitiot Date: Fri, 11 Jun 2021 15:16:02 +0200 Subject: [PATCH] added a getter for finished in TrialHandler --- src/data/TrialHandler.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/data/TrialHandler.js b/src/data/TrialHandler.js index 6603be6..a4204ce 100644 --- a/src/data/TrialHandler.js +++ b/src/data/TrialHandler.js @@ -305,6 +305,17 @@ export class TrialHandler extends PsychObject } + /** + * Getter for the finished attribute. + * + * @returns {boolean} whether or not the trial has finished. + */ + get finished() + { + return this._finished; + } + + /** * Setter for the finished attribute. *