_initializeSelector() {
    for (const transformation of this._selectorTransformations) {
      const transformedSelector = _.isFunction(transformation) ?
        transformation(this._selector, this.bemBase) :
        this._transformSelector(transformation);

      // TODO How to check more reliably?
      if (!transformedSelector) {
        throw new TypeError(
          `${this.displayName}: selector transformation must return new ` +
          `selector but it return ${typeOf(transformedSelector)} ` +
          `(${transformedSelector})`
        );
      }

      this._selector = transformedSelector;
    }

    this._selectorInitialized = true;
  }
/**
   * Used to initialize fragment's selector.
   *
   * @private
   */
Used to initialize fragment's selector.
@private
Used to initialize fragment ' s selector . @private
_initializeSelector() {
    for (const transformation of this._selectorTransformations) {
      const transformedSelector = _.isFunction(transformation) ?
        transformation(this._selector, this.bemBase) :
        this._transformSelector(transformation);
      if (!transformedSelector) {
        throw new TypeError(
          `${this.displayName}: selector transformation must return new ` +
          `selector but it return ${typeOf(transformedSelector)} ` +
          `(${transformedSelector})`
        );
      }
      this._selector = transformedSelector;
    }
    this._selectorInitialized = true;
  }
_initializeSelector ( ) { for ( const transformation of this . _selectorTransformations ) { const transformedSelector = _ . isFunction ( transformation ) ? transformation ( this . _selector , this . bemBase ) : this . _transformSelector ( transformation ) ; if ( ! transformedSelector ) { throw new TypeError ( ` ${ this . displayName } ` + ` ${ typeOf ( transformedSelector ) } ` + ` ${ transformedSelector } ` ) ; } this . _selector = transformedSelector ; } this . _selectorInitialized = true ; }
Used to initialize fragment's selector.
Used to initialize fragment ' s selector .
// TODO How to check more reliably?