Forum Discussion
EnTerr
10 years agoRoku Guru
Ah, so perhaps <script uri="..."/> are treated like #import, i.e. compiled only once.
There is one thing that i don't understand though, since you mentioned sub init() - how come there is no error message on that? When both component A and B each define inline their init() - those two definitions should clash, just like two inlined tokenize() would have?
PS. curiously, TFM insists URI must to point to components/ -
There is one thing that i don't understand though, since you mentioned sub init() - how come there is no error message on that? When both component A and B each define inline their init() - those two definitions should clash, just like two inlined tokenize() would have?
PS. curiously, TFM insists URI must to point to components/ -
"<script>" wrote:I'll take a guess doco is wrong on that...
uri | optional | A string specifying an external file that contains script code associated with the component. This file must be located in the components directory of the application, and have the .brs extension for BrightScript code.