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

Commit

Permalink
WIP changed markers.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Jan 18, 2019
1 parent 0fb4295 commit 01e0132
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/model/differ.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,15 @@ export default class Differ {
return result;
}

/**
* Returns all markers which changed.
*
* @returns {Array.<Object>}
*/
getChangedMarkers() {
return Array.from( this._changedMarkers ).map( item => ( { name: item[ 0 ], data: item[ 1 ] } ) );
}

/**
* Checks whether some of the buffered changes affect the editor data.
*
Expand Down

0 comments on commit 01e0132

Please sign in to comment.