Closed kirkyoder closed 4 years ago
Evidently BrightScript doesn't care about this, but we're throwing an exception whenever we parse the observable fields and are unable to find the appropriate callable function: https://github.com/sjbarag/brs/blob/25437e2d3d070d270e2c3aef28d8d85d94d2ff0a/src/interpreter/index.ts#L255
When a derived component object is created whose parent's interface defines observable fields (e.g.
onChange
), an exception will be thrown unless the given observable's callback exists on the derived component.Example Setup
DerivedComponent.xml
DerivedComponent.brs
ParentComponent.xml
Exception