mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add braces to single line statements in src/shared/annotation.js
This commit is contained in:
parent
15a63e48bd
commit
4840c2ccdc
1 changed files with 4 additions and 2 deletions
|
@ -401,8 +401,9 @@ var WidgetAnnotation = (function WidgetAnnotationClosure() {
|
|||
var j, jj;
|
||||
for (j = 0, jj = kids.length; j < jj; j++) {
|
||||
var kidRef = kids[j];
|
||||
if (kidRef.num == ref.num && kidRef.gen == ref.gen)
|
||||
if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
fieldName.unshift('`' + j);
|
||||
}
|
||||
|
@ -695,8 +696,9 @@ var TextAnnotation = (function TextAnnotationClosure() {
|
|||
for (var i = 0, ii = lines.length; i < ii; ++i) {
|
||||
var line = lines[i];
|
||||
e.appendChild(document.createTextNode(line));
|
||||
if (i < (ii - 1))
|
||||
if (i < (ii - 1)) {
|
||||
e.appendChild(document.createElement('br'));
|
||||
}
|
||||
}
|
||||
text.appendChild(e);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue