mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Kill global objects
This commit is contained in:
parent
88e78fa6f9
commit
e9b6ffbaf6
3 changed files with 35 additions and 27 deletions
4
fonts.js
4
fonts.js
|
@ -210,14 +210,14 @@ var FontLoader = {
|
|||
return rule;
|
||||
},
|
||||
|
||||
bind: function fontLoaderBind(fonts, callback) {
|
||||
bind: function fontLoaderBind(fonts, callback, objects) {
|
||||
function checkFontsLoaded() {
|
||||
for (var i = 0; i < objs.length; i++) {
|
||||
var fontObj = objs[i];
|
||||
if (fontObj.loading) {
|
||||
return false;
|
||||
}
|
||||
Objects.resolve(fontObj.loadedName);
|
||||
objects.resolve(fontObj.loadedName);
|
||||
}
|
||||
|
||||
document.documentElement.removeEventListener(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue