js/dist/index.js
function () {
        var spans = {}
        for (var i = 0, l = fontList.length; i < l; i++) {
          var fontSpans = []
          for (var j = 0, numDefaultFonts = baseFonts.length; j < numDefaultFonts; j++) {
            var s = createSpanWithFonts(fontList[i], baseFonts[j])
            fontsDiv.appendChild(s)
            fontSpans.push(s)
          }
          spans[fontList[i]] = fontSpans // Stores {fontName : [spans for that font]}
        }
        return spans
      }
function () {
        var spans = {}
        for (var i = 0, l = fontList.length; i < l; i++) {
          var fontSpans = []
          for (var j = 0, numDefaultFonts = baseFonts.length; j < numDefaultFonts; j++) {
            var s = createSpanWithFonts(fontList[i], baseFonts[j])
            fontsDiv.appendChild(s)
            fontSpans.push(s)
          }
          spans[fontList[i]] = fontSpans // Stores {fontName : [spans for that font]}
        }
        return spans
      }
function ( ) { var spans = { } for ( var i = 0 , l = fontList . length ; i < l ; i ++ ) { var fontSpans = [ ] for ( var j = 0 , numDefaultFonts = baseFonts . length ; j < numDefaultFonts ; j ++ ) { var s = createSpanWithFonts ( fontList [ i ] , baseFonts [ j ] ) fontsDiv . appendChild ( s ) fontSpans . push ( s ) } spans [ fontList [ i ] ] = fontSpans // Stores {fontName : [spans for that font]} } return spans }
creates spans for the fonts to detect and adds them to fontsDiv
creates spans for the fonts to detect and adds them to fontsDiv