function createItem(container) {
      if (!isHTMLElement(container)) {
        throw new TypeError("Missing container: A selector requires a container");
      }

      container.classList.add("selector-item");
      var item = Object.create(BaseSelectorItem, {
        container: {
          value: container
        },
        selector: {
          value: this
        }
      }).init();
      this.addItem(item);
      return item;
    }
/**
     * Creates a selector item
     * @param {HTMLElement} container 
     */
Creates a selector item
@param {HTMLElement} container
Creates a selector item @param { HTMLElement } container
function createItem(container) {
      if (!isHTMLElement(container)) {
        throw new TypeError("Missing container: A selector requires a container");
      }
      container.classList.add("selector-item");
      var item = Object.create(BaseSelectorItem, {
        container: {
          value: container
        },
        selector: {
          value: this
        }
      }).init();
      this.addItem(item);
      return item;
    }
function createItem ( container ) { if ( ! isHTMLElement ( container ) ) { throw new TypeError ( "Missing container: A selector requires a container" ) ; } container . classList . add ( "selector-item" ) ; var item = Object . create ( BaseSelectorItem , { container : { value : container } , selector : { value : this } } ) . init ( ) ; this . addItem ( item ) ; return item ; }
Creates a selector item
 @param {HTMLElement} container
Creates a selector item @param { HTMLElement } container