From 4989f56673f573bc5245f209a9eb733f32c03e6d Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 15 Apr 2013 14:36:25 +0100 Subject: [PATCH] undo avoid changeset spam as it breaks functionality --- CHANGELOG.md | 1 - src/static/js/Changeset.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 513a93b79..8abebf814 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,6 @@ * Fix: Import browser detection * Fix: 2 Part Locale Specs * Fix: Remove language string from chat element - * Fix: Temporary patch for Changeset Spam * Fix: Make Saved revision Star fade back out on non Top frames * Other: Remove some cruft legacy JS from old Etherpad * Other: Express 3.1.2 breaks sessions, set Express to 3.1.0 diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js index 89ac5d750..b16042126 100644 --- a/src/static/js/Changeset.js +++ b/src/static/js/Changeset.js @@ -1663,16 +1663,9 @@ exports.appendATextToAssembler = function (atext, assem) { * @param cs {Changeset} * @param pool {AtributePool} */ -var lastEvent = null; // This is just a temporary measure to ensure we don't send the exact same changeset twice -// Documentation for this is available at https://github.com/ether/etherpad-lite/issues/1652 - exports.prepareForWire = function (cs, pool) { - if(cs == lastEvent){ - throw new Error("Not sending the same event twice..."); - } var newPool = new AttributePool(); var newCs = exports.moveOpsToNewPool(cs, pool, newPool); - lastEvent = cs; return { translated: newCs, pool: newPool