kadirahq/subs-manager

when, where to use "reset or clear"?

thearabbit opened this issue · 3 comments

I am a new for this package.
But don't understand when, where to use "reset or clear"?

// In docs
var subs = new SubsManager(); // use in router such as `Flow Router`

// later in some other place
subs.clear()/.reset(); // Where and When??? 

I think that we can't us subs in global, because it declare with var.
Please help me.

just remove the var ...

Thanks for your reply.

Neither one is working for mine.