1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #6745 from Snuffleupagus/bug-1232071

Reset the `styleElement` when clearing out loaded fonts (bug 1232017)
This commit is contained in:
Yury Delendik 2015-12-12 12:50:21 -05:00
commit 4485c79940

View file

@ -49,6 +49,7 @@ FontLoader.prototype = {
var styleElement = this.styleElement;
if (styleElement) {
styleElement.parentNode.removeChild(styleElement);
styleElement = this.styleElement = null;
}
//#if !(MOZCENTRAL)
this.nativeFontFaces.forEach(function(nativeFontFace) {