zotero/resource
Dan Stillman 6b87c641d9 Experimental approach to cancelling unnecessary promises
If a view or other resources are destroyed while a promise is being
resolved, subsequent code can fail. This is generally harmless, but it
results in unnecessary errors being logged to the console.

To address this, promises can use a new function,
Zotero.Promise.check(), to test whether a value is truthy or 0 and
automatically throw a specific error that's ignored by the unhandled
rejection handler if not.

Example usage:

getAsync().tap(() => Zotero.Promise.check(this.win));

If this.win is cleaned up while getAsync() is being resolved, subsequent
lines won't be run, and nothing will be logged to the console.
2015-05-23 04:43:37 -04:00
..
schema Add 'version' to sync cache primary key 2015-05-19 01:25:31 -04:00
tinymce Fix pasting of non-HTTP URLs into notes from non-note sources 2015-04-10 13:08:25 -04:00
bluebird.js Experimental approach to cancelling unnecessary promises 2015-05-23 04:43:37 -04:00
concurrent-caller.js Include running function in current count in ConcurrentCaller log line 2015-05-15 01:47:20 -04:00
config.js Bump version and maxVersion 2015-03-27 19:00:25 -04:00
csl-validator.js Use latest csl-validator 2013-03-23 17:30:34 -04:00
hide.vbs Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00
pathparser.js Update zotero:// extensions (report, timeline, etc.) for async DB, and more 2014-09-09 00:36:29 -04:00
redirect.sh Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00
redirect.vbs Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00