jimsparkman / RiotControl

Event Controller / Dispatcher For RiotJS, Inspired By Flux
http://jimsparkman.github.io/RiotControl/routing_demo/
MIT License
598 stars 48 forks source link

Add 'reset' or 'destroy' method #21

Closed fishermand46 closed 9 years ago

fishermand46 commented 9 years ago

When testing, it is very nice to be able to reset your global dispatch object (in this case RiotControl).

We could add a method destroy which would probably just set the internal stores variable equal to [].

I'd be happy to open a PR if this is something you think would be worth adding.

fishermand46 commented 9 years ago

Dupe of #12 .

jimsparkman commented 9 years ago

I think it's a good idea, it is worth adding. Send me a PR and I'll merge it.