From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 29 Apr 2010 18:45:37 +0000 (+0000)
Subject: debugging aid
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f430d9c4ed97c4f1fa3a8f9d30fcc8a5254d1184;p=contrib%2FConifer.git

debugging aid

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16348 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js
index adbab36763..50ba3a920a 100644
--- a/Open-ILS/xul/staff_client/chrome/content/util/error.js
+++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js
@@ -51,6 +51,14 @@ util.error.prototype = {
             + e + '\n-----------------------------------------\n' );
     },
 
+    'obj_dump' : function(s,dobj) {
+        var o = 'typeof ' + dobj + ' = ' + typeof dobj + '\n';
+        for (var i in dobj) {
+            o += i + '\t' + typeof dobj[i] + '\n';
+        }
+        this.sdump(s,o);
+    },
+
     'sdump_levels' : {
 
         'D_NONE' : false,