nhooey/ajax-solr — comment on commit 89150be8d5518a03868198b1faa3f76c2c75bd61
File:  line 0
By nhooey:

I looked at the call stack behind AjaxSolr.isArray() in jquery.js, listed below.

It looks like testing for "[object Array]" is how jQuery checks for an array type across browsers.

A better solution could be to copy this type checking code into AjaxSolr.

What do you think?

```
isArray: Array.isArray || function( obj ) {
return jQuery.type(obj) === "array";
},

type: function( obj ) {
return obj == null ?
String( obj ) :
class2type[ toString.call(obj) ] || "object";
},

// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
class2type[ "[object " + name + "]" ] = name.toLowerCase();
});
```