From 9e126f7d52afaa47248f340047c3152a575c94e5 Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Tue, 12 Apr 2016 13:59:16 -0500 Subject: [PATCH] trivial: Fix bug in _assertInSync, rename a local variable left over from a previous era. --- lib/rga.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rga.js b/lib/rga.js index c37c1c1..30ee1ed 100644 --- a/lib/rga.js +++ b/lib/rga.js @@ -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"); }