From fd53793986552234660587cb44aed3e94e86198e Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 14 Mar 2022 12:41:19 +0100 Subject: [PATCH] Update jsdoc --- src/editor/index.js | 1 + src/editor/model/Editor.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/index.js b/src/editor/index.js index 4b9c10a79..d6e5e3c8f 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -431,6 +431,7 @@ export default (config = {}, opts = {}) => { /** * Store data to the current storage. + * This will reset the counter of changes (`editor.getDirtyCount()`). * @param {Object} [options] Storage options. * @returns {Object} Stored data. * @example diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index f4f04e3a1..4efc0ddd3 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -629,7 +629,7 @@ export default class EditorModel extends Model { */ async load(options) { const result = await this.get('StorageManager').load(options); - this.skip(() => this.loadData(result)); + this.loadData(result); return result; }