From: erickson Date: Fri, 9 Jan 2009 14:00:17 +0000 (+0000) Subject: only call callback if defined X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa9885d4c91b57d3bbefa8a23b4e1d4abcb5ac02;p=Evergreen.git only call callback if defined git-svn-id: svn://svn.open-ils.org/ILS/trunk@11777 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 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 */