From 8898587f6c16df77e24f40b72f9b837891109f06 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 24 Sep 2019 09:13:05 -0800 Subject: [PATCH] minor tweaks, https://github.com/phetsims/chipper/issues/797 --- js/requirejs-plugins/string.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/requirejs-plugins/string.js b/js/requirejs-plugins/string.js index e00e6ef41..fc27480b7 100644 --- a/js/requirejs-plugins/string.js +++ b/js/requirejs-plugins/string.js @@ -32,7 +32,7 @@ define( require => { // Where stringValueObject is the value of each key in string json files. const cache = {}; - // {Object.} - keep track of actions to trigger once the first load comes back for that + // {Object.>} - keep track of actions to trigger once the first load comes back for that // url. This way there aren't many text.get calls kicked off before the first. // can come back with text. const urlsCurrentlyBeingLoaded = {}; @@ -74,7 +74,7 @@ define( require => { cache[ url ] = parsed; // clear the entries added during the async loading process - urlsCurrentlyBeingLoaded[ url ] && urlsCurrentlyBeingLoaded[ url ].forEach( action => action && action() ); + urlsCurrentlyBeingLoaded[ url ] && urlsCurrentlyBeingLoaded[ url ].forEach( action => action() ); delete urlsCurrentlyBeingLoaded[ url ]; callback( cache[ url ] );