mcollina/levelgraph — pull request #46 by boxxxie (2013-12-06 15:06:19+00:00)
Title: enhanced levelgraph constructor with callback for when DB is ready

https://github.com/mcollina/levelgraph/issues/45

created a helper function for initializing a 'db' instance.

added another argument to the constructor that is a callback for when the indexDB onStoreReady state/function is called.

also made the constructor work if there are only 2 arguments and one of them is supposed to be the 3rd argument callback function.