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:
commit
cd4b76c1cb
@ -104,6 +104,11 @@ export class ButtonStim extends TextBox
|
|||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this._addAttribute(
|
||||||
|
"numClicks",
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
|
||||||
if (this._autoLog)
|
if (this._autoLog)
|
||||||
{
|
{
|
||||||
this._psychoJS.experimentLogger.exp(`Created ${this.name} = ${this.toString()}`);
|
this._psychoJS.experimentLogger.exp(`Created ${this.name} = ${this.toString()}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user