Noticed some more problems in older (albeit unsupported) browsers
This commit is contained in:
parent
04be27b47b
commit
8e1dd595ec
3 changed files with 21 additions and 2 deletions
|
|
@ -1077,6 +1077,15 @@ if (!Array.prototype.indexOf) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
|
||||
*/
|
||||
if (!Array.isArray) {
|
||||
Array.isArray = function (arg) {
|
||||
return Object.prototype.toString.call(arg) === '[object Array]';
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue