if ( show && !this.warnedUnattached && !this.isElementAttached() ) {
        OO.ui.warnDeprecation( 'PopupWidget#toggle: Before calling this method, the popup must be attached to the DOM.' );
        this.warnedUnattached = true;
    }