Call complete method to activate garbage collection, if one exists

This commit is contained in:
Simon Kornblith 2012-01-09 23:15:10 -05:00
parent 0a5ec165fb
commit 7344473e45

View file

@ -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);