From b5344119bbe392d1c142f846dff7faa71daf807f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 22 Jun 2016 06:26:02 -0400 Subject: [PATCH] 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 --- chrome/content/zotero/xpcom/data/library.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/library.js b/chrome/content/zotero/xpcom/data/library.js index 12102efd42..18cbf9425e 100644 --- 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]; }