Unfortunately this is the only way to do so. Helium DSL is based on a Model-View-Presenter (MVP) pattern that couples presenters and views more closely than say the MVC pattern does. This means that referencing variables or functions from one unit should specifically be designated as the variables or functions in that specific unit. Read a bit more about these two patterns here:
https://stackoverflow.com/questions/2056/what-are-mvp-and-mvc-and-what-is-the-difference
https://www.oreilly.com/library/view/learning-javascript-design/9781449334840/ch10s09.html
Answered
Reference/Set a variable from another unit
I know I can reference or set a variable, or even call a function with DSL in one unit from another unit by first specifying the unit name and then the variable/function as follows:
SomeUnit:SomeVariable
SomeUnit:SomeFunction()
Is there some other way of doing this that is less intrusive?
229 Views
1
Answer
4 years ago
4 years ago
Tags