src/store/internals/removeEnabledElement.js
function _cleanModulesOnElement(enabledElement) {
  const modules = store.modules;

  Object.keys(modules).forEach(function(key) {
    if (typeof modules[key].removeEnabledElementCallback === 'function') {
      modules[key].removeEnabledElementCallback(enabledElement);
    }
  });
}
function _cleanModulesOnElement(enabledElement) {
  const modules = store.modules;

  Object.keys(modules).forEach(function(key) {
    if (typeof modules[key].removeEnabledElementCallback === 'function') {
      modules[key].removeEnabledElementCallback(enabledElement);
    }
  });
}
function _cleanModulesOnElement ( enabledElement ) { const modules = store . modules ; Object . keys ( modules ) . forEach ( function ( key ) { if ( typeof modules [ key ] . removeEnabledElementCallback === 'function' ) { modules [ key ] . removeEnabledElementCallback ( enabledElement ) ; } } ) ; }
Iterate over our store's modules. If the module has a
`removeEnabledElementCallback` call it and clean up unneeded metadata.
@private
@method
@param  {Object} enabledElement
@returns {void}
Iterate over our store s modules . If the module has a removeEnabledElementCallback call it and clean up unneeded metadata .