mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
Merge pull request #2377 from webzwo0i/avoid-global-vairables
declare var outside of loop
This commit is contained in:
commit
a2d22a5764
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
|
||||||
|
|
||||||
// apply msgQueue changeset.
|
// apply msgQueue changeset.
|
||||||
if (msgQueue.length != 0) {
|
if (msgQueue.length != 0) {
|
||||||
while (var msg = msgQueue.shift()) {
|
var msg;
|
||||||
|
while (msg = msgQueue.shift()) {
|
||||||
var newRev = msg.newRev;
|
var newRev = msg.newRev;
|
||||||
rev=newRev;
|
rev=newRev;
|
||||||
if (msg.type == "ACCEPT_COMMIT")
|
if (msg.type == "ACCEPT_COMMIT")
|
||||||
|
|
Loading…
Reference in a new issue