summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorWu Cheng-Han2016-09-18 17:05:55 +0800
committerWu Cheng-Han2016-09-18 17:05:55 +0800
commit21afa2de14bec4b4eb08f5e58d884753b510dfb9 (patch)
tree91e649418e2edfab986406aac403c7a2ab2253bd /public/js
parent9b5856fff0e089ef97a2b2f60c1b3a94b01852f3 (diff)
Fix undefined variable typo
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 0a4395ee..bbb0d3be 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1691,7 +1691,7 @@ function selectRevision(time) {
// mark the text which have been insert or delete
if (revision.patch.length > 0) {
var bias = 0;
- for (j = 0; j < revision.patch.length; j++) {
+ for (var j = 0; j < revision.patch.length; j++) {
var patch = revision.patch[j];
var currIndex = patch.start1 + bias;
for (var i = 0; i < patch.diffs.length; i++) {