www

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

commit b5344119bbe392d1c142f846dff7faa71daf807f
parent 48a072d254caceaa23f54ea0b50b047dc2c7188f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 22 Jun 2016 06:26:02 -0400

Don't warn if a modified library property is accessed before save

getCellText() can be called between when a property (e.g., .name) is
changed and when ._changed is reset after the save, making this warning
unavoidable

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

diff --git a/chrome/content/zotero/xpcom/data/library.js b/chrome/content/zotero/xpcom/data/library.js @@ -227,11 +227,6 @@ Zotero.Library.prototype._get = function(prop) { throw new Error('Unknown property "' + prop + '"'); } - if (this._changed[prop]) { - // Catch attempts to retrieve unsaved property? - Zotero.debug('Warning: Attempting to retrieve unsaved ' + this._objectType + ' property "' + prop + '"', 2, true); - } - return this[prop]; }