1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 18:50:54 +00:00

Merge pull request #483 from TEParsons/_numClicks

BF: Initialise ButtonStim with a `numClicks` attribute
This commit is contained in:
Alain Pitiot 2022-03-06 10:14:18 +01:00 committed by GitHub
commit cd4b76c1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,11 @@ export class ButtonStim extends TextBox
[],
);
this._addAttribute(
"numClicks",
0,
);
if (this._autoLog)
{
this._psychoJS.experimentLogger.exp(`Created ${this.name} = ${this.toString()}`);