martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

Document Store#clear #342

Closed dennis-johnson-dev closed 9 years ago

dennis-johnson-dev commented 9 years ago

I see in store.js that stores come with a clear() function - https://github.com/martyjs/marty-lib/blob/master/src/store/store.js#L91, but this method isn't mentioned in the docs. We have found ourselves writing our own clearState method, but were wondering if this method would be ok to use? If it's just missing from the docs, I can submit a pr as well.

taion commented 9 years ago

Funny enough, it looks like it should be documented, but isn't: http://martyjs.org/api/application/index.html#clearState