www

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

commit 33deefbf74dd96c082d0950c2f927a8befbe88fc
parent 1cf2585b41cf3550609bf977efd3aa2b5c98418d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 17 Jan 2017 02:58:47 -0500

Limit depth to 1 when outputting data objects

This prevents descending into the global object cache that's accessible
from every data object.

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1386,6 +1386,11 @@ Zotero.Utilities = { return '<<Unknown type: ' + type + '>> ' + obj; } + // Don't descend into global object cache for data objects + if (Zotero.isClient && typeof obj == 'object' && obj instanceof Zotero.DataObject) { + maxLevel = 1; + } + // More complex dump with indentation for objects if (level === undefined) { level = 0;