Skip to content

Commit

Permalink
trivial: Fix bug in _assertInSync, rename a local variable left over …
Browse files Browse the repository at this point in the history
…from a previous era.
  • Loading branch information
jorendorff committed Apr 12, 2016
1 parent 5aa49be commit 9e126f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rga.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ Object.assign(RGA.AceEditorRGA.prototype, {
},

// Throw if the this._lastText and the RGA don't have the same value.
_assertInSync: function () {
var erText = this.text();
if (this._lastText != erText) {
_assertInSync: function (infodump) {
var rgaText = this.text();
if (this._lastText != rgaText) {
infodump.lastText = this._lastText;
infodump.rgaText = erText;
infodump.rgaText = rgaText;
console.error(this.id, "lastText and RGA are out of sync", infodump);
throw new Error("editor and RGA data structure got out of sync");
}
Expand Down

0 comments on commit 9e126f7

Please sign in to comment.