brianleroux/lawnchair — pull request #78 by mattg (2011-12-09 23:56:16+00:00)
Title: No adapter selected when options.adapter has a value

When options.adapter has a value (like webkit-sqlite) your version attempts to select the item from Lawnchair.adapters where the key equals options.adapter. Lawnchair.adapters has numeric keys, so an adapter is never selected. I fixed this by looping through Lawnchair.adapters and checking to see which adapter's adapter member is equal to options.adapter.