You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple places in the codebase where we have an object that is a Spriteor a Stage, and we need to check if it's visible. Because visible is only defined for Sprite, this is awkward and requires us to do "visible" in target ? target.visible : true.
Instead, we could define a visible getter for Stage that always returns true, and just omit the setter. If JS allows it, we may be able to just define the getter on SpriteBase and only define the setter on Sprite.
The text was updated successfully, but these errors were encountered:
There are a couple places in the codebase where we have an object that is a
Sprite
or aStage
, and we need to check if it's visible. Becausevisible
is only defined forSprite
, this is awkward and requires us to do"visible" in target ? target.visible : true
.Instead, we could define a
visible
getter forStage
that always returns true, and just omit the setter. If JS allows it, we may be able to just define the getter onSpriteBase
and only define the setter onSprite
.The text was updated successfully, but these errors were encountered: