Separate return statement from function for clarity in bidi.js.
This fixes also JSlint warning.
This commit is contained in:
parent
29fb446a38
commit
2fb6e413db
1 changed files with 5 additions and 2 deletions
|
@ -124,7 +124,7 @@ var bidi = PDFJS.bidi = (function bidiClosure() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (function bidi(text, startLevel) {
|
function bidi(text, startLevel) {
|
||||||
var str = text.str;
|
var str = text.str;
|
||||||
var strLength = str.length;
|
var strLength = str.length;
|
||||||
if (strLength == 0)
|
if (strLength == 0)
|
||||||
|
@ -429,5 +429,8 @@ var bidi = PDFJS.bidi = (function bidiClosure() {
|
||||||
result += ch;
|
result += ch;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
});
|
}
|
||||||
|
|
||||||
|
return bidi;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue