From 2dcd55f31fa0d4db4dbe3454a0b452f370f6d0c5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 8 Aug 2005 03:21:16 +0000 Subject: r9211: don't try to encode functions in the AJAJ object encoder (This used to be commit a08104a13c722b3888aecd365e32aae63ea481e5) --- swat/scripting/client/encoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swat/scripting/client') diff --git a/swat/scripting/client/encoder.js b/swat/scripting/client/encoder.js index 20eec9e2c35..2b1db669d28 100644 --- a/swat/scripting/client/encoder.js +++ b/swat/scripting/client/encoder.js @@ -37,7 +37,7 @@ function encodeObject(o) { r = r + "" + i + ":" + t + ":" + o[i] + ":"; } else if (t == 'undefined' || t == 'null') { r = r + "" + i + ":" + t + ":"; - } else { + } else if (t != 'function') { alert("Unable to encode type " + t); } } -- cgit