mozilla-b2g/gaia — pull request #4762 by davidflanagan (2012-09-15 08:08:07+00:00)
Title: Completely refactored MediaDB library, now with tests!

This is a long-overdue refactoring of the MediaDB library. It finally supports device storage change events so it doesn't have to scan all the time. But the API has changed in a number of ways, too. It has better documentation and tests now.

No apps are using this new version yet, and I'm developing it in the gallery/js/ directory before migrating it to the shared/ directory.

I'm creating this pull request in case someone wants to spend their weekend reviewing 1000+ lines of code. And also so that @daleharvey and @dominickuo can see what changes are in store. My plan is to update the video and music apps once I have gallery working so you guys won't have to upgrade to this new version yourselves. But here it is, in case you're interested.