Merge pull request #2377 from webzwo0i/avoid-global-vairables
declare var outside of looppull/2378/head
commit
a2d22a5764
|
@ -152,7 +152,8 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
|
|||
|
||||
// apply msgQueue changeset.
|
||||
if (msgQueue.length != 0) {
|
||||
while (var msg = msgQueue.shift()) {
|
||||
var msg;
|
||||
while (msg = msgQueue.shift()) {
|
||||
var newRev = msg.newRev;
|
||||
rev=newRev;
|
||||
if (msg.type == "ACCEPT_COMMIT")
|
||||
|
|
Loading…
Reference in New Issue