Your Digital Media Has Never Looked So Good

 
vjani
Topic Author
Posts: 18
Joined: Thu May 28, 2015 5:56 pm

TaskNode callback scope

Wed Feb 07, 2018 5:00 pm

Hello,

So, just came across a limitation while creating TaskNodes that the callback function registered with observeField is sent as a string, so it has be defined in the component brs file for the owning component and not anywhere else. For example, if my component brs uses other objects that themselves have member functions, there is no way for those member functions to create TaskNodes and listen for events on them as the observeField doesn't take in the scope for the callback. Am I missing something or this is as designed? Because this essentially means that for any component, all Task Nodes and their callbacks have to be defined inside the component brs.

Who is online

Users browsing this forum: No registered users and 5 guests