www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8a8093028de2cf31fc90290207a76656950b9756
parent 2069b5b396c0ec61717f4f66e4c96e57b8c08607
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri,  9 Aug 2013 11:00:55 -0400

Check if callback exists before calling

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -814,10 +814,10 @@ Components.utils.import("resource://gre/modules/Services.jsm"); Zotero.DB.closeDatabase().then(function() { // broadcast that DB lock has been released Zotero.IPC.broadcast("lockReleased"); - callback(); + if(callback) callback(); }); } else { - callback(); + if(callback) callback(); } } catch(e) { Zotero.debug(e);