mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Mirror of https://github.com/zotero/zotero.git
Object contains 'libraryID' and 'key' properties
This is due to changed array destructuring behavior in Firefox. Previously,
`var [foo, bar] = maybeArrayMaybeFalse()` always worked, leaving foo and bar
undefined if the function returned false. Now (with ES6, I assume), if the
function returns false it results in a "false[Symbol.iterator] is not a
function" error. But `var {libraryID, key} = false` works as expected, leaving
both values undefined, so instead we can just return an object with those
properties from getLibraryAndKeyFromID(). To assign to different variables, use
`var {libraryID, key: parentItemKey} = ...`.
|
||
|---|---|---|
| chrome | ||
| components | ||
| defaults/preferences | ||
| resource | ||
| styles@188e5914c7 | ||
| test | ||
| translators@daa1a05939 | ||
| .gitmodules | ||
| chrome.manifest | ||
| COPYING | ||
| install.rdf | ||
| README.md | ||
| update.rdf | ||
Zotero
Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
For more information on how to use this source code, see the Zotero wiki.