marcuswestin/store.js — pull request #43 by tjarratt (2012-03-30 20:38:45+00:00)
Title: Document store.disabled flag and fix for qunit.

Thanks for responding so swiftly to the issue I opened earlier regarding private browsing mode in Safari. I've issued this pull request to fix two small issues:

1. document the store.disabled flag (as you so kindly requested).
2. allow store.js to be used in qunit automated tests

The issue with qunit is basically that the library exposes a global function in the browser named 'module' that the testrunner uses to prepend a name to a group of tests. Without this, the `store` object isn't exposed into the global scope, but is set as a property on this module function (and generally causes havoc among tests that use localStorage).

I'm assuming this is done to provide support for node.js (I can't think of any other large projects using the commonjs module system). Are there any tests for this behavior or anything else I can check to ensure this doesn't break anything?