From fa9885d4c91b57d3bbefa8a23b4e1d4abcb5ac02 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 9 Jan 2009 14:00:17 +0000 Subject: [PATCH] only call callback if defined git-svn-id: svn://svn.open-ils.org/ILS/trunk@11777 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/IDL.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/IDL.js b/Open-ILS/web/js/dojo/fieldmapper/IDL.js index e68e6045b6..cfff690b16 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/IDL.js +++ b/Open-ILS/web/js/dojo/fieldmapper/IDL.js @@ -23,7 +23,8 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { error : function (response) { fieldmapper.IDL.loaded = false; dojo.require('fieldmapper.fmall', true); - callback(); + if(callback) + callback(); } }); } @@ -81,7 +82,8 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { idl[id] = obj; } - callback(); + if(callback) + callback(); }, /* parses the links and fields portion of the IDL */ -- 2.11.0