8
0
Maciej Bukowski 6 лет назад
Родитель
Сommit
c3de307ce6

+ 3 - 2
packages/ckeditor5-watchdog/src/editorwatchdog.js

@@ -199,8 +199,9 @@ export default class EditorWatchdog extends Watchdog {
 	}
 
 	/**
-	 * Destroys the current editor instance by using the destructor passed to the {@link #setDestructor `setDestructor()`} method
-	 * and sets state to `destroyed`.
+	 * Destroys the watchdog and the current editor instance. It fires the callback
+	 * registered in {@link #setDestructor `setDestructor()`} and uses it to destroy the editor instance.
+	 * It also sets state to `destroyed`.
 	 *
 	 * @returns {Promise}
 	 */

+ 2 - 1
packages/ckeditor5-watchdog/src/watchdog.js

@@ -149,7 +149,8 @@ export default class Watchdog {
 	/**
 	 * Sets the function that is responsible for the instance creation.
 	 *
-	 * @param {Function} creator A callback returning promise that is responsible for instance creation.
+	 * @param {Function} creator A callback responsible for creating instance. Returns a promise
+	 * that is resolved when the instance is created.
 	 */
 	setCreator( creator ) {
 		this._creator = creator;