From 9112fbbf79a7bf0d38572721d0b0561ebdcde0dd Mon Sep 17 00:00:00 2001 From: Brian Stell Date: Mon, 20 Apr 2015 17:02:07 -0700 Subject: [PATCH] Minor stuff. --- .../src/gae_server/www/js/tachyfont/tachyfont.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/run_time/src/gae_server/www/js/tachyfont/tachyfont.js b/run_time/src/gae_server/www/js/tachyfont/tachyfont.js index b0926054..c7c65d00 100644 --- a/run_time/src/gae_server/www/js/tachyfont/tachyfont.js +++ b/run_time/src/gae_server/www/js/tachyfont/tachyfont.js @@ -90,10 +90,13 @@ if (goog.DEBUG) { */ tachyfont.buildDemo = false; - var persistDataStr = tachyfont.uri.getParameterValue('TachyFontPersistData') || ''; - if (persistDataStr.toLowerCase() == "false") { - tachyfont.persistData = false; - } + var persistDataStr = + tachyfont.uri.getParameterValue('TachyFontPersistData') || ''; + // The following code implements this logic: + // if (persistDataStr.toLowerCase() == 'false') { + // tachyfont.persistData = false; + // } + tachyfont.persistData = persistDataStr.toLowerCase() != 'false'; }; } @@ -240,8 +243,8 @@ tachyfont.loadFonts = function(familyName, fontsInfo, opt_params) { then(function(arrayBaseData) { var allCssSet = []; for (var i = 0; i < tachyFonts.length; i++) { - var loadedBase = arrayBaseData[i]; var incrfont = tachyFonts[i].incrfont; + var loadedBase = arrayBaseData[i]; // If not persisted then need to wait for DOMContentLoaded to // set the font. if (!incrfont.alreadyPersisted) {