mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
function scope: variables only need to be declared once
This commit is contained in:
parent
0fa0d6dc2c
commit
c3081c046b
1 changed files with 6 additions and 6 deletions
|
@ -234,14 +234,14 @@ function getHTMLFromAtext(pad, atext, authorColors)
|
|||
// close all tags upto the outer most
|
||||
if (outermostTag != -1)
|
||||
{
|
||||
for (var i=0; i <= outermostTag; outermostTag--)
|
||||
for (i=0; i <= outermostTag; outermostTag--)
|
||||
{
|
||||
emitCloseTag(openTags[0])
|
||||
}
|
||||
}
|
||||
|
||||
// open all tags that are used but not open
|
||||
for (var i=0; i < usedAttribs.length; i++)
|
||||
for (i=0; i < usedAttribs.length; i++)
|
||||
{
|
||||
if (openTags.indexOf(usedAttribs[i]) === -1)
|
||||
{
|
||||
|
@ -511,8 +511,8 @@ function _processSpaces(s){
|
|||
}
|
||||
}
|
||||
// beginning of line is nbsp
|
||||
for (var i = 0; i < parts.length; i++){
|
||||
var p = parts[i];
|
||||
for (i = 0; i < parts.length; i++){
|
||||
p = parts[i];
|
||||
if (p == " "){
|
||||
parts[i] = ' ';
|
||||
break;
|
||||
|
@ -524,8 +524,8 @@ function _processSpaces(s){
|
|||
}
|
||||
else
|
||||
{
|
||||
for (var i = 0; i < parts.length; i++){
|
||||
var p = parts[i];
|
||||
for (i = 0; i < parts.length; i++){
|
||||
p = parts[i];
|
||||
if (p == " "){
|
||||
parts[i] = ' ';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue