From 95e5df63d15f5c84e2b4e24b8a69c4ced8551a03 Mon Sep 17 00:00:00 2001 From: artem Date: Tue, 13 Nov 2007 16:02:51 +0000 Subject: - [DEV-54] minor fix in JS (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5015 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/js/common.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'frontends') diff --git a/frontends/php/js/common.js b/frontends/php/js/common.js index d7bcb930..1e1e6198 100644 --- a/frontends/php/js/common.js +++ b/frontends/php/js/common.js @@ -47,6 +47,13 @@ function is_string(obj){ return (typeof(obj) == 'string'); } +function is_array(obj) { + if (obj.constructor.toString().indexOf("Array") == -1) + return false; + else + return true; +} + if (!Array.prototype.forEach) { Array.prototype.forEach = function(fun /*, thisp*/) -- cgit