Explorar o código

Improved comment.

Maciej Bukowski %!s(int64=7) %!d(string=hai) anos
pai
achega
fe166e79d9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/ckeditor5-autosave/src/autosave.js

+ 3 - 1
packages/ckeditor5-autosave/src/autosave.js

@@ -164,7 +164,9 @@ export default class Autosave extends Plugin {
 				this._debouncedSave();
 			}
 
-			// Do nothing if the plugin is in `external-saving` state.
+			// If the plugin is in `saving` state, it will change its state later basing on the `document.version`.
+			// If the `document.version` will be higher than stored `#_lastDocumentVersion`, then it means, that some `change:data`
+			// event has fired in the meantime.
 		} );
 
 		// Flush on the editor's destroy listener with the highest priority to ensure that