Nick
10/18/2024, 3:19 PMthis
-scoped variables in a component from outside the component (in ACF2023)?
I want to enable implicit accessors on the component, but it would be nice to enforce some protection against something like MyComponent.MisspelledProperty = "xyz"
from working. By default, CF just sets this.MisspelledProperty = "xyz"
in this situation. (Of course, well-written functions and unit testing will help.)bkbk
10/21/2024, 9:16 PMthis
scope is public. Whereas MyComponent.MisspelledProperty = "xyz
defines a static variable.
It is your choice to use variables defined in these scopes. Surely, rather than block or intercept them, the best option is to choose not to use them at all. 🙂 It can also be that I don't understand what you mean.