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

Agreed, I like that cleanup.

- Matt

> On Aug 4, 2014, at 7:46, Thodoris Greasidis <notifications@github.com> wrote:
> 
> In src/localforage.js:
> 
> > @@ -79,11 +79,7 @@
> >          setDriver: function(drivers, callback, errorCallback) {
> >              var self = this;
> >  
> > -            var isArray = Array.isArray || function(arg) {
> > -                return Object.prototype.toString.call(arg) === '[object Array]';
> > -            };
> > -
> > -            if (!isArray(drivers) && typeof drivers === 'string') {
> isArray looks redundant here since a typeof check follows.
> 
> —
> Reply to this email directly or view it on GitHub.