Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
API docs fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Jun 12, 2018
1 parent 9958547 commit 8b4b632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/model/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default class Document {
* } );
*
* If, however, you only want to be notified about the data changes, then use the
* {@link module:engine/model/document~Document#event:change:data change:data event},
* {@link module:engine/model/document~Document#event:change:data change:data} event,
* which fires for document structure changes and marker changes (which affects the data).
*
* model.document.on( 'change:data', () => {
Expand All @@ -397,18 +397,18 @@ export default class Document {
*/

/**
* Fired when the data changes:
* Fired when the data changes, which includes:
* * document structure changes,
* * marker changes (which affects the data).
*
* If you want to be notified about the data changes, then simply listen to this event:
* If you want to be notified about the data changes, then listen to this event:
*
* model.document.on( 'change:data', () => {
* console.log( 'The data has changed!' );
* } );
*
* If you would like to listen to all changes, then check the
* {@link module:engine/model/document~Document#event:change change event}.
* {@link module:engine/model/document~Document#event:change change} event.
*
* @event change:data
* @param {module:engine/model/batch~Batch} batch The batch that was used in the executed changes block.
Expand Down

0 comments on commit 8b4b632

Please sign in to comment.