Call complete method to activate garbage collection, if one exists
This commit is contained in:
parent
0a5ec165fb
commit
7344473e45
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue