feat(localforage): ensure setDriver is called with a string or an array

Oh, okay. They're good as-is, was just curious. 

- Matt

> On Aug 4, 2014, at 7:45, Thodoris Greasidis <notifications@github.com> wrote:
> 
> In test/test.api.js:
> 
> > @@ -55,6 +55,22 @@ describe('localForage', function() {
> >              });
> >          }
> >      });
> > +    
> > +    it('does not support object parameter to setDriver', function(done) {
> > +        var driverPreferedOrder = {
> > +            '0': localforage.INDEXEDDB,
> This might not be necessary (for all browsers) but since object property names are converted to strings (on object literal declaration and when accessing with the bracket notation) I thought this was the best way to go.
> Without this PR, this object literal works as a parameter to setDriver.
> Do you want to change the commit to make them look like numbers?
> 
> —
> Reply to this email directly or view it on GitHub.