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 getStore function to RiotControl #24

Closed wind13 closed 8 years ago

wind13 commented 8 years ago

Sometime we need to get store from RiotControl at another page/view, what we did it now is like this:

            RiotControl._stores[0].load();

That will be better if we can use it like this:

            RiotControl.getStore("TodoStore").load();
wind13 commented 8 years ago

And all the demos should be refactor then.

jimsparkman commented 8 years ago

I'm not ignoring this, I just haven't had time to experiment with it yet. Also looking at a major restructuring #23.