[open-ils-commits] r11777 - trunk/Open-ILS/web/js/dojo/fieldmapper

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 9 09:00:18 EST 2009


Author: erickson
Date: 2009-01-09 09:00:17 -0500 (Fri, 09 Jan 2009)
New Revision: 11777

Modified:
   trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
Log:
only call callback if defined

Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js	2009-01-09 03:38:45 UTC (rev 11776)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js	2009-01-09 14:00:17 UTC (rev 11777)
@@ -23,7 +23,8 @@
                     error : function (response) {
                         fieldmapper.IDL.loaded = false;
                         dojo.require('fieldmapper.fmall', true);
-                        callback();
+                        if(callback)
+                            callback();
                     }
                 });
             }
@@ -81,7 +82,8 @@
                 idl[id] = obj;
             }
     
-            callback();
+            if(callback)
+                callback();
         },
     
         /* parses the links and fields portion of the IDL */



More information about the open-ils-commits mailing list