www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ffcf608de19719b0daff954df5a41aac96b8e55a
parent 9209edd081172d1be85ecdadbeb5e320e15999b6
Author: Dan Stillman <dan@danstillman.com>
Date:   Tue, 22 Aug 2017 02:32:43 +0200

Don't show "Running handler" for 'debug' handler during translation

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1101,7 +1101,9 @@ Zotero.Translate.Base.prototype = { var handlers = this._handlers[type].slice(); for(var i=0, n=handlers.length; i<n; i++) { - Zotero.debug("Translate: Running handler "+i+" for "+type, 5); + if (type != 'debug') { + Zotero.debug(`Translate: Running handler ${i} for ${type}`, 5); + } try { returnValue = handlers[i].apply(null, args); } catch(e) {