(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= fonts.length) { testingFonts.stop(); ref1 = FD.all.callbacks; for (l = 0, len1 = ref1.length; l < len1; l++) { callback = ref1[l]; callback(testedFonts); } FD.all.callbacks = []; FD.each.callbacks = []; doneTestingFonts = true; return; } } }); }; /* * FontDetective.preload() * Starts detecting fonts early */ FD.preload = loadFonts; /* * FontDetective.each(function(font){}) * Calls back with a `Font` every time a font is detected and tested */ FD.each = function(callback) { var font, j, len; for (j = 0, len = testedFonts.length; j < len; j++) { font = testedFonts[j]; callback(font); } if (!doneTestingFonts) { FD.each.callbacks.push(callback); return loadFonts(); } }; FD.each.callbacks = []; /* * FontDetective.all(function(fonts){}) * Calls back with an `Array` of `Font`s when all fonts are detected and tested */ FD.all = function(callback) { if (doneTestingFonts) { return callback(testedFonts); } else { FD.all.callbacks.push(callback); return loadFonts(); } }; return FD.all.callbacks = []; })(window); },{}]},{},[1]);