mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Replace unnecessary bind(this)
and var self = this
statements with arrow functions in remaining src/core/
files
This commit is contained in:
parent
0c99429291
commit
ebaa22478c
5 changed files with 47 additions and 68 deletions
|
@ -633,7 +633,7 @@ var Font = (function FontClosure() {
|
|||
properties.differences);
|
||||
} else {
|
||||
glyphsUnicodeMap = getGlyphsUnicode();
|
||||
this.toUnicode.forEach(function(charCode, unicodeCharCode) {
|
||||
this.toUnicode.forEach((charCode, unicodeCharCode) => {
|
||||
if (!this.composite) {
|
||||
glyphName = (properties.differences[charCode] ||
|
||||
properties.defaultEncoding[charCode]);
|
||||
|
@ -643,7 +643,7 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
}
|
||||
this.toFontChar[charCode] = unicodeCharCode;
|
||||
}.bind(this));
|
||||
});
|
||||
}
|
||||
this.loadedName = fontName.split('-')[0];
|
||||
this.loading = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue