Cleanup Moz support in FontLoader
This commit is contained in:
parent
16e4d4ed97
commit
06cef910fb
2 changed files with 59 additions and 145 deletions
|
@ -136,7 +136,7 @@ var Promise = (function() {
|
|||
|
||||
resolve: function(data) {
|
||||
if (this.isResolved) {
|
||||
throw "A Promise can be resolved only once";
|
||||
throw "A Promise can be resolved only once " + this.name;
|
||||
}
|
||||
|
||||
this.isResolved = true;
|
||||
|
@ -229,10 +229,7 @@ var WorkerPDFDoc = (function() {
|
|||
Objects.resolve(objId, fontObj);
|
||||
} else {
|
||||
Objects.setData(objId, fontObj);
|
||||
FontLoader.bind([fontObj], function() {
|
||||
console.log("loaded", fontObj.loadedName);
|
||||
Objects.resolve(objId);
|
||||
});
|
||||
FontLoader.bind(fontObj);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue