waitingStr: [],
bind: function(fonts, callback) {
- console.log("requesting fonts", fonts[0].properties.loadedName, fonts[0].name);
-
var rules = [], names = [];
for (var i = 0; i < fonts.length; i++) {
// If the promise isn't resolved yet, add the continueCallback
// to the promise and bail out.
if (!promise.isResolved) {
- console.log("depending on obj", depObjId);
promise.then(continueCallback);
return i;
}
Promise.prototype = {
resolve: function(data) {
- console.log("resolve", this.name);
-
if (this.isResolved) {
throw "A Promise can be resolved only once";
}
var file = data[3];
var properties = data[4];
- console.log("got new font", name);
-
var font = {
name: name,
file: file,