Merge branch 'develop' of github.com:ether/etherpad-lite into update-connect

This commit is contained in:
John McLear 2013-04-15 19:07:01 +01:00
commit 9b952da692
3 changed files with 4 additions and 11 deletions

View file

@ -1,6 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- "0.8" - "0.10"
install: install:
- "bin/installDeps.sh" - "bin/installDeps.sh"
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)" - "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
@ -11,12 +11,13 @@ script:
env: env:
global: global:
- secure: "OxZ2s724S96xu02746LUN+4lBckAe1BOICJjfA4jnFPNpiNU6XoMH52f+LgG\nZzAwu6xMTv+NsaLGp6Avm3cx4GZ+jIiHe4NB9XOgYPa0r0TBIi3ueWYPDyVv\nCniS/4qX68DoFNV4lh7zMBXn0IIPxT4Wppm3desBpjWDP/SdoRs=" - secure: "OxZ2s724S96xu02746LUN+4lBckAe1BOICJjfA4jnFPNpiNU6XoMH52f+LgG\nZzAwu6xMTv+NsaLGp6Avm3cx4GZ+jIiHe4NB9XOgYPa0r0TBIi3ueWYPDyVv\nCniS/4qX68DoFNV4lh7zMBXn0IIPxT4Wppm3desBpjWDP/SdoRs="
- SAUCE_USER=pita - SAUCE_USER=etherpad
jdk: jdk:
- oraclejdk6 - oraclejdk6
notifications: notifications:
email: email:
- petermartischka@googlemail.com - petermartischka@googlemail.com
- contact@etherpad.org
irc: irc:
channels: channels:
- "irc.freenode.org#etherpad-lite-dev" - "irc.freenode.org#etherpad-lite-dev"

View file

@ -8,7 +8,6 @@
* Fix: Import browser detection * Fix: Import browser detection
* Fix: 2 Part Locale Specs * Fix: 2 Part Locale Specs
* Fix: Remove language string from chat element * 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 * Fix: Make Saved revision Star fade back out on non Top frames
* Other: Remove some cruft legacy JS from old Etherpad * Other: Remove some cruft legacy JS from old Etherpad
* Other: Express 3.1.2 breaks sessions, set Express to 3.1.0 * Other: Express 3.1.2 breaks sessions, set Express to 3.1.0

View file

@ -1663,16 +1663,9 @@ exports.appendATextToAssembler = function (atext, assem) {
* @param cs {Changeset} * @param cs {Changeset}
* @param pool {AtributePool} * @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) { exports.prepareForWire = function (cs, pool) {
if(cs == lastEvent){
throw new Error("Not sending the same event twice...");
}
var newPool = new AttributePool(); var newPool = new AttributePool();
var newCs = exports.moveOpsToNewPool(cs, pool, newPool); var newCs = exports.moveOpsToNewPool(cs, pool, newPool);
lastEvent = cs;
return { return {
translated: newCs, translated: newCs,
pool: newPool pool: newPool