[open-ils-commits] r17179 - trunk/Open-ILS/web/js/dojo/fieldmapper (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 11 21:23:59 EDT 2010
Author: miker
Date: 2010-08-11 21:23:58 -0400 (Wed, 11 Aug 2010)
New Revision: 17179
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
Log:
register the autoloader earlier, and log about the use it gets
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2010-08-11 21:50:25 UTC (rev 17178)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2010-08-12 01:23:58 UTC (rev 17179)
@@ -24,12 +24,6 @@
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 @@
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);
+ }
+
}
More information about the open-ils-commits
mailing list