mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Remove Zotero.spawn()
This method relied on Bluebird and can be replaced by just awaiting an async function.
This commit is contained in:
parent
ccc5dba032
commit
2e0a10f732
2 changed files with 0 additions and 11 deletions
|
|
@ -1823,13 +1823,6 @@ Zotero.Utilities.Internal = {
|
|||
};
|
||||
},
|
||||
|
||||
spawn: function (generator, thisObject) {
|
||||
if (thisObject) {
|
||||
return generator.bind(thisObject)();
|
||||
}
|
||||
return generator();
|
||||
},
|
||||
|
||||
/**
|
||||
* Defines property on the object
|
||||
* More compact way to do Object.defineProperty
|
||||
|
|
|
|||
|
|
@ -1582,10 +1582,6 @@ const { CommandLineOptions } = ChromeUtils.importESModule("chrome://zotero/conte
|
|||
return Zotero.Utilities.Internal.serial(fn);
|
||||
}
|
||||
|
||||
this.spawn = function (generator, thisObject) {
|
||||
return Zotero.Utilities.Internal.spawn(generator, thisObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show Zotero pane overlay and progress bar in all windows
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue