Closed Lelelo1 closed 5 years ago
Anything accessing private protected fields/methods has to have i'ts implementation directly inside - otherwise this
context is lost.
They can be set and get with reflection.
For example...
protected myVar
field declared on Reactify class body:
... being set from getCurrentRefImpl.ts
(or any other implementation file) like so:
Which logs..
CONSOLE LOG file:///app/Reactified/API.ts:31:20: myVar: I was set with reflection
That way things that should be protected like myRef
, updateListeners()
etc will be protected, thus invisible and inaccessible to the end user
Handle visibility modifiers gracefully.
For instance
Observable
andFrame
both use theupdateListeners
method. It is protected so it should not be visible to the end user.