From 9303100416ab477cb418d6d854233028a69914e6 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 12 Aug 2010 01:23:58 +0000 Subject: [PATCH] register the autoloader earlier, and log about the use it gets git-svn-id: svn://svn.open-ils.org/ILS/trunk@17179 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/IDL.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/IDL.js b/Open-ILS/web/js/dojo/fieldmapper/IDL.js index ac446f93c..3e1fe35db 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/IDL.js +++ b/Open-ILS/web/js/dojo/fieldmapper/IDL.js @@ -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); + } + } -- 2.11.0