shinypb / openkeyval

OpenKeyval.org is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.
http://openkeyval.org
Other
136 stars 35 forks source link

adds a noConflict() method #28

Open sukima opened 11 years ago

sukima commented 11 years ago

These two commits add an IIFE wrapper to provide closure and stores any reference to window.remoteStorage. The new noConflict method can be used to restore the remoteStorage reference if you wish.

This does assume that OpenKeyval will always be global (There has to be a reference even if remoteStorage is not available)

sukima commented 11 years ago

I din't have access to the packer you use to make openkeyval.packed.js That will have to be done after the merge by the project owner.