Skip to content

Added optional createStore() method.#43

Closed
olalonde wants to merge 1 commit into
ptarjan:masterfrom
olalonde:master
Closed

Added optional createStore() method.#43
olalonde wants to merge 1 commit into
ptarjan:masterfrom
olalonde:master

Conversation

@olalonde
Copy link
Copy Markdown

See issue #41

I just wrapped the whole module into a createStore function. This is a backwards compatible change and simply adds the option to have a local cache to avoid conflicting with other modules.

The diff pretty bad. I just replaced all exports with store. Added var store = {}; at the top. Wrapped the whole thing with a function createStore() {} and module.exports = createStore(); module.exports.createStore = createStore.

@ptarjan
Copy link
Copy Markdown
Owner

ptarjan commented Jun 9, 2015

I've thought more about it, and I like it.

If you redo the PR with the current code and add stuff to the README I'll merge.

@kibertoad
Copy link
Copy Markdown

Can I fix and resubmit the original PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants