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:
parent
48a072d254
commit
b5344119bb
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user