Skip to content

Commit fc6123e

Browse files
committed
Add getHistoryGeneration() to CodeMirror.js.
1 parent 8944402 commit fc6123e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/codemirror.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6216,6 +6216,9 @@ Doc.prototype = createObj(BranchChunk.prototype, {
62166216
isClean: function (gen) {
62176217
return this.history.generation == (gen || this.cleanGeneration)
62186218
},
6219+
getHistoryGeneration: function() {
6220+
return this.history.generation;
6221+
},
62196222

62206223
getHistory: function() {
62216224
return {done: copyHistoryArray(this.history.done),

0 commit comments

Comments
 (0)