mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
some polish for a turd
This commit is contained in:
parent
946289c221
commit
bf93500214
1 changed files with 1 additions and 2 deletions
|
@ -1669,14 +1669,13 @@ var lastEvent = null; // This is just a temporary measure to ensure we don't sen
|
||||||
exports.prepareForWire = function (cs, pool) {
|
exports.prepareForWire = function (cs, pool) {
|
||||||
if(cs == lastEvent){
|
if(cs == lastEvent){
|
||||||
throw new Error("Not sending the same event twice...");
|
throw new Error("Not sending the same event twice...");
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
var newPool = new AttributePool();
|
var newPool = new AttributePool();
|
||||||
var newCs = exports.moveOpsToNewPool(cs, pool, newPool);
|
var newCs = exports.moveOpsToNewPool(cs, pool, newPool);
|
||||||
lastEvent = cs;
|
lastEvent = cs;
|
||||||
return {
|
return {
|
||||||
translated: newCs,
|
translated: newCs,
|
||||||
pool: newPool
|
pool: newPool
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue