Skip to content

Commit

Permalink
Fix invalid use of const
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Jan 26, 2017
1 parent 9d00be5 commit 0ce7249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/kompos/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ function nodeFromTemplate(tplId: string) {
}

function createLineNumbers(cnt: number) {
const result = "<span class='ln' onclick='ctrl.onToggleLineBreakpoint(1, this);'>1</span>",
i;
for (i = 2; i <= cnt; i += 1) {
let result = "<span class='ln' onclick='ctrl.onToggleLineBreakpoint(1, this);'>1</span>";
for (let i = 2; i <= cnt; i += 1) {
result = result + "\n<span class='ln' onclick='ctrl.onToggleLineBreakpoint(" + i + ", this);'>" + i + "</span>";
}
return result;
Expand Down

0 comments on commit 0ce7249

Please sign in to comment.