packages/odo-module/src/module.js
function getSelector(Module, selector) {
  // Verify that a base selector is defined.
  if (typeof selector === 'undefined') {
    if (Module.Selectors && Module.Selectors.BASE) {
      return Module.Selectors.BASE;
    }

    // Support both `ClassName` and `Classes` enumerations.
    const classes = Module.ClassName || Module.Classes;
    if (classes && classes.BASE) {
      return '.' + classes.BASE;
    }

    throw new TypeError('A base selector for this module must be specified.');
  }

  return selector;
}
function getSelector(Module, selector) {
  // Verify that a base selector is defined.
  if (typeof selector === 'undefined') {
    if (Module.Selectors && Module.Selectors.BASE) {
      return Module.Selectors.BASE;
    }

    // Support both `ClassName` and `Classes` enumerations.
    const classes = Module.ClassName || Module.Classes;
    if (classes && classes.BASE) {
      return '.' + classes.BASE;
    }

    throw new TypeError('A base selector for this module must be specified.');
  }

  return selector;
}
function getSelector ( Module , selector ) { // Verify that a base selector is defined. if ( typeof selector === 'undefined' ) { if ( Module . Selectors && Module . Selectors . BASE ) { return Module . Selectors . BASE ; } // Support both `ClassName` and `Classes` enumerations. const classes = Module . ClassName || Module . Classes ; if ( classes && classes . BASE ) { return '.' + classes . BASE ; } throw new TypeError ( 'A base selector for this module must be specified.' ) ; } return selector ; }
Determine the base selector for this module.
@param {Object} Module
@param {string} [selector]
@return {string} Updated selector string.
@throws {TypeError} If the selector cannot be determined.
Determine the base selector for this module .