some polish for a turd

pull/1721/head
John McLear 2013-04-08 19:50:52 +01:00
parent 946289c221
commit bf93500214
1 changed files with 1 additions and 2 deletions

View File

@ -1669,14 +1669,13 @@ var lastEvent = null; // This is just a temporary measure to ensure we don't sen
exports.prepareForWire = function (cs, pool) {
if(cs == lastEvent){
throw new Error("Not sending the same event twice...");
return false;
}
var newPool = new AttributePool();
var newCs = exports.moveOpsToNewPool(cs, pool, newPool);
lastEvent = cs;
return {
translated: newCs,
pool: newPool
pool: newPool
};
};