From: miker Date: Thu, 12 Aug 2010 01:23:58 +0000 (+0000) Subject: register the autoloader earlier, and log about the use it gets X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9303100416ab477cb418d6d854233028a69914e6;p=evergreen%2Fbjwebb.git 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 --- 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); + } + }