Assuming I have the following function:
ifvisible.now("idle", function(){
// Stop auto updating the live data
if (this.activitySub)
this.activitySub.unsubscribe();
});
Since all the variables inside function() { } are not recognized, how I can import or use them inside the function (or in any other way)?