www

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

commit 7344473e453bf7d4474f1ed72e729efdca63605a
parent 0a5ec165fbc3b732b92c27fa1c535bc814224731
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  9 Jan 2012 23:15:10 -0500

Call complete method to activate garbage collection, if one exists

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

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -387,6 +387,12 @@ Zotero.Integration = new function() { if(doc) { try { doc.cleanup(); + + // Call complete function if one exists + if(doc.wrappedJSObject && doc.wrappedJSObject.complete) { + doc.wrapped.JSObject.complete(); + } + doc.activate(); } catch(e) { Zotero.logError(e);