From 21afa2de14bec4b4eb08f5e58d884753b510dfb9 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 18 Sep 2016 17:05:55 +0800 Subject: Fix undefined variable typo --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js/index.js') 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++) { -- cgit v1.2.3