register the autoloader earlier, and log about the use it gets
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 01:23:58 +0000 (01:23 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 01:23:58 +0000 (01:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17179 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/IDL.js

index ac446f9..3e1fe35 100644 (file)
@@ -24,12 +24,6 @@ if(!dojo._hasResource["fieldmapper.IDL"]) {
                         if (i > 0) idl_url += '&';
                         idl_url += 'class=' + trim_class;
                     }
-
-                    JSON2js.fallbackObjectifier = function (arg, key_name, val_name) {
-                        fieldmapper.IDL.load([arg[key_name]]);
-                        return decodeJS(arg);
-                    }
-                    
                 }
                         
                 var self = this;
@@ -202,5 +196,11 @@ if(!dojo._hasResource["fieldmapper.IDL"]) {
     fieldmapper.IDL.load = function (list) { if (!list) list = []; return new fieldmapper.IDL(list); };
     fieldmapper.IDL.loaded = false;
 
+    JSON2js.fallbackObjectifier = function (arg, key_name, val_name) {
+        console.log("Firing IDL loader for " + key_name);
+        fieldmapper.IDL.load([arg[key_name]]);
+        return decodeJS(arg);
+    }
 }