src/store/internals/addEnabledElement.js
function _addGlobalToolsToElement(enabledElement) {
  if (!store.modules.globalConfiguration.state.globalToolSyncEnabled) {
    return;
  }

  Object.keys(store.state.globalTools).forEach(function(key) {
    const { tool, configuration } = store.state.globalTools[key];

    addToolForElement(enabledElement, tool, configuration);
  });
}
function _addGlobalToolsToElement(enabledElement) {
  if (!store.modules.globalConfiguration.state.globalToolSyncEnabled) {
    return;
  }

  Object.keys(store.state.globalTools).forEach(function(key) {
    const { tool, configuration } = store.state.globalTools[key];

    addToolForElement(enabledElement, tool, configuration);
  });
}
function _addGlobalToolsToElement ( enabledElement ) { if ( ! store . modules . globalConfiguration . state . globalToolSyncEnabled ) { return ; } Object . keys ( store . state . globalTools ) . forEach ( function ( key ) { const { tool , configuration } = store . state . globalTools [ key ] ; addToolForElement ( enabledElement , tool , configuration ) ; } ) ; }
Iterate over our stores globalTools adding each one to `enabledElement`
@private
@method
@param {HTMLElement} enabledElement
@returns {void}
Iterate over our stores globalTools adding each one to enabledElement