diff --git a/src/www/minibar/support.js b/src/www/minibar/support.js index 557a3b41f..f06b8db2a 100644 --- a/src/www/minibar/support.js +++ b/src/www/minibar/support.js @@ -12,6 +12,14 @@ function bind(f, this_value) { return function () {return f.apply (this_value, arguments)}; }; +// Implement Array.isArray for older browsers that lack it. +// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray +if(!Array.isArray) { + Array.isArray = function (arg) { + return Object.prototype.toString.call(arg) == '[object Array]'; + }; +} + /* --- JSONP ---------------------------------------------------------------- */ // Inspired by the function jsonp from