1
0
Fork 0
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:
Jonas Jenwald 2017-05-02 11:14:53 +02:00
parent 0c99429291
commit ebaa22478c
5 changed files with 47 additions and 68 deletions

View file

@ -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;