From 72e9fe5b0ba61497df87a09038be98c95c4864db Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Tue, 6 Oct 2020 22:52:14 +0100 Subject: [PATCH] visual/ShapeStim: drop adding opacity attribute in constructor Not required, because opacity is one of the attributes passed on to the parent class via super() --- js/visual/ShapeStim.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/visual/ShapeStim.js b/js/visual/ShapeStim.js index aa69690..f7eb217 100644 --- a/js/visual/ShapeStim.js +++ b/js/visual/ShapeStim.js @@ -101,12 +101,6 @@ export class ShapeStim extends util.mix(VisualStim).with(ColorMixin, WindowMixin 1.0, this._onChange(true, false) ); - this._addAttribute( - 'opacity', - opacity, - 1.0, - this._onChange(false, false) - ); }