diff options
author | webzwo0i <webzwo0i@c3d2.de> | 2014-12-14 22:01:28 +0100 |
---|---|---|
committer | webzwo0i <webzwo0i@c3d2.de> | 2014-12-14 22:01:28 +0100 |
commit | 5d15f655f0d697995e221c19e707fc9ff05faaa2 (patch) | |
tree | 19e9a6a44d2a8c808766f45516b986d2f8a6e5a7 /src/static/js/changesettracker.js | |
parent | 1932d240e5689370ab4cee4374ff3c198807d9d6 (diff) | |
download | etherpad-lite-5d15f655f0d697995e221c19e707fc9ff05faaa2.zip |
dont make local variables global
Diffstat (limited to 'src/static/js/changesettracker.js')
-rw-r--r-- | src/static/js/changesettracker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/changesettracker.js b/src/static/js/changesettracker.js index f3efc407..fe362c4b 100644 --- a/src/static/js/changesettracker.js +++ b/src/static/js/changesettracker.js @@ -179,7 +179,7 @@ function makeChangesetTracker(scheduler, apool, aceCallbacksProvider) // We need to replace all author attribs with thisSession.author, in case they copy/pasted or otherwise inserted other peoples changes if(apool.numToAttrib){ for (var attr in apool.numToAttrib){ - if (apool.numToAttrib[attr][0] == 'author' && apool.numToAttrib[attr][1] == authorId) authorAttr = Number(attr).toString(36) + if (apool.numToAttrib[attr][0] == 'author' && apool.numToAttrib[attr][1] == authorId) var authorAttr = Number(attr).toString(36) } // Replace all added 'author' attribs with the value of the current user |