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
This commit is contained in:
Dan Stillman 2016-06-22 06:26:02 -04:00
parent 48a072d254
commit b5344119bb

View File

@ -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];
}