node_modules/@jaames/iro/dist/iro.es.js
/**
 * iro.js plugins API
 * This provides the iro.use method, which can be used to register plugins which extend the iro.js core
 */
iro.js plugins API
This provides the iro.use method, which can be used to register plugins which extend the iro.js core
iro . js plugins API This provides the iro . use method which can be used to register plugins which extend the iro . js core
function usePlugins(core) {
  var installedPlugins = [];
  core.use = function(plugin, pluginOptions) {
    if ( pluginOptions === void 0 ) pluginOptions = {};
    if (!(installedPlugins.indexOf(plugin) > -1)) {
      plugin(core, pluginOptions);
      installedPlugins.push(plugin);
    }
  };
  core.installedPlugins = installedPlugins;
  return core;
}
function usePlugins ( core ) { var installedPlugins = [ ] ; core . use = function ( plugin , pluginOptions ) { if ( pluginOptions === void 0 ) pluginOptions = { } ; if ( ! ( installedPlugins . indexOf ( plugin ) > - 1 ) ) { plugin ( core , pluginOptions ) ; installedPlugins . push ( plugin ) ; } } ; core . installedPlugins = installedPlugins ; return core ; }
iro.js plugins API
 This provides the iro.use method, which can be used to register plugins which extend the iro.js core
iro . js plugins API This provides the iro . use method which can be used to register plugins which extend the iro . js core
/**
   * @desc Register iro.js plugin
   * @param {Function} plugin = plugin constructor
   * @param {Object} pluginOptions = plugin options passed to constructor
   */ // Check that the plugin hasn't already been registered // Init plugin // TODO: consider collection of plugin utils, which are passed as a thrid param // Register plugin