Index: trunk/extensions/Wikidata/OmegaWiki/suggest.js |
— | — | @@ -598,7 +598,7 @@ |
599 | 599 | |
600 | 600 | var result = new Array(); |
601 | 601 | |
602 | | - for (i = 0; i < headerRowCount; i++) { |
| 602 | + for (var i = 0; i < headerRowCount; i++) { |
603 | 603 | var headerRow = tableNode.rows[i]; |
604 | 604 | |
605 | 605 | for (j = 0; j < headerRow.cells.length; j++) |
— | — | @@ -608,13 +608,13 @@ |
609 | 609 | return result; |
610 | 610 | } |
611 | 611 | |
612 | | -function nodeHasClass(node, class) { |
613 | | - var classes = node.className.split(' '); |
| 612 | +function nodeHasClass(node, className) { |
| 613 | + var nodeClasses = node.className.split(' '); |
614 | 614 | var result = false; |
615 | 615 | var i = 0; |
616 | 616 | |
617 | | - while (!result && i < classes.length) |
618 | | - if (classes[i] == class) |
| 617 | + while (!result && i < nodeClasses.length) |
| 618 | + if (nodeClasses[i] == className) |
619 | 619 | result = true; |
620 | 620 | else |
621 | 621 | i++; |
— | — | @@ -622,13 +622,13 @@ |
623 | 623 | return result; |
624 | 624 | } |
625 | 625 | |
626 | | -function removeNodeClass(node, class) { |
627 | | - var classes = node.className.split(' '); |
| 626 | +function removeNodeClass(node, className) { |
| 627 | + var nodeClasses = node.className.split(' '); |
628 | 628 | var newClasses = new Array(); |
629 | 629 | |
630 | | - for (var i = 0; i < classes.length; i++) |
631 | | - if (classes[i] != class) |
632 | | - newClasses.push(classes[i]); |
| 630 | + for (var i = 0; i < nodeClasses.length; i++) |
| 631 | + if (nodeClasses[i] != className) |
| 632 | + newClasses.push(nodeClasses[i]); |
633 | 633 | |
634 | 634 | node.className = newClasses.join(" "); |
635 | 635 | } |