Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f10e1d7

Browse files
committed
fix jsdoc comments
1 parent 56606a4 commit f10e1d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/editor/model.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Range from "./range";
3232
* @param {string?} inputType the inputType of the DOM input event
3333
* @param {object?} diff an object with `removed` and `added` strings
3434
* @return {Number?} addedLen how many characters were added/removed (-) before the caret during the transformation step.
35-
This is used to adjust the caret position.
35+
* This is used to adjust the caret position.
3636
*/
3737

3838
export default class EditorModel {
@@ -47,7 +47,8 @@ export default class EditorModel {
4747
this._updateInProgress = false;
4848
}
4949

50-
/** Set a callback for the transformation step.
50+
/**
51+
* Set a callback for the transformation step.
5152
* While processing an update, right before calling the update callback,
5253
* a transform callback can be called, which serves to do modifications
5354
* on the model that can span multiple parts. Also see `startRange()`.
@@ -57,7 +58,8 @@ export default class EditorModel {
5758
this._transformCallback = transformCallback;
5859
}
5960

60-
/** Set a callback for rerendering the model after it has been updated.
61+
/**
62+
* Set a callback for rerendering the model after it has been updated.
6163
* @param {ModelCallback} updateCallback
6264
*/
6365
setUpdateCallback(updateCallback) {

0 commit comments

Comments
 (0)