NEWS
Unsubscribe object from another script
-
When I subscribe object and then unsubscribe in one script everything is working.
on({id:"0_userdata.0.VIS.Views.LColorChange.RGB"}, function (obj) {console.log("OK")}); console.log(unsubscribe("0_userdata.0.VIS.Views.LColorChange.RGB")); //this line give me true
but then I move last line to another script I have the false response. Example:
Script1: on({id:"0_userdata.0.VIS.Views.LColorChange.RGB"}, function (obj) {console.log("OK")}); Script2: console.log(unsubscribe("0_userdata.0.VIS.Views.LColorChange.RGB")); //this line give me false
How to unsubscribe object subscribed in another script?