sub init()
?"Initing SomeNode..."
onSomeTextChanged({fakeEvent: ""})
end sub
sub onSomeTextChanged(event=invalid)
?"onSomeTextChanged called"
if event <> invalid
?"Event is not invalid"
return
end if
end sub
Initing SomeNode...
onSomeTextChanged called
Event is not invalid
onSomeTextChanged called
Event is not invalid
source/main.brs(3,7-15): return encountered
Notice that the first call to onSomeTextChanged(outside of the onChange scope) does not raise an error but the onChange one does.
Given the following node: SomeNode.xml
SomeNode.brs
When executing the following steps on main.brs:
We have the following output:
Notice that the first call to
onSomeTextChanged
(outside of theonChange
scope) does not raise an error but theonChange
one does.