Sha256: 7be1bf216f983e3a1dd4de6cbf698cb8e827465a58ac930f97fef190a16f0fcc
Contents?: true
Size: 552 Bytes
Versions: 21
Compression:
Stored size: 552 Bytes
Contents
/** * @constructor */ webfont.FontModuleLoader = function() { this.modules_ = {}; }; webfont.FontModuleLoader.prototype.addModuleFactory = function(name, factory) { this.modules_[name] = factory; }; webfont.FontModuleLoader.prototype.getModules = function(configuration) { var modules = []; for (var key in configuration) { if (configuration.hasOwnProperty(key)) { var moduleFactory = this.modules_[key]; if (moduleFactory) { modules.push(moduleFactory(configuration[key])); } } } return modules; };
Version data entries
21 entries across 21 versions & 1 rubygems