src/core/font.js in webfontloader-1.0.9 vs src/core/font.js in webfontloader-1.0.13

- old
+ new

@@ -38,27 +38,29 @@ eventDispatcher.dispatchInactive(); } else { eventDispatcher.dispatchLoading(); } } - fontWatcher.watch([], {}, allModulesLoaded); + fontWatcher.watch([], {}, {}, allModulesLoaded); return; } module.load(webfont.bind(this, this.onModuleReady_, eventDispatcher, fontWatcher)); }; webfont.WebFont.prototype.onModuleReady_ = function(eventDispatcher, fontWatcher, - fontFamilies, opt_fontDescriptions) { + fontFamilies, opt_fontDescriptions, opt_fontTestStrings) { var allModulesLoaded = --this.moduleLoading_ == 0; if (allModulesLoaded) { eventDispatcher.dispatchLoading(); } this.asyncCall_(webfont.bind(this, function(_fontWatcher, _fontFamilies, - _fontDescriptions, _allModulesLoaded) { - _fontWatcher.watch(_fontFamilies, _fontDescriptions || {}, _allModulesLoaded); - }, fontWatcher, fontFamilies, opt_fontDescriptions, allModulesLoaded)); + _fontDescriptions, _fontTestStrings, _allModulesLoaded) { + _fontWatcher.watch(_fontFamilies, _fontDescriptions || {}, + _fontTestStrings || {}, _allModulesLoaded); + }, fontWatcher, fontFamilies, opt_fontDescriptions, opt_fontTestStrings, + allModulesLoaded)); }; webfont.WebFont.prototype.load_ = function(eventDispatcher, configuration) { var modules = this.fontModuleLoader_.getModules(configuration), self = this;