File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/socialnetwork/common/src/widget.js
Back
import {Type} from 'main.core'; export class Widget { constructor() { this.widget = null; } show(targetNode: HTMLElement) { if (this.widget) { if (this.widget.isShown()) { this.widget.close(); return; } } const data = this.getData({ targetNode: targetNode, }); if (Type.isNull(data)) { return; } this.widget = this.getWidget({ targetNode: targetNode, data: data, }); if (this.widget) { this.widget.show(); } } hide() { if ( this.widget && this.widget.isShown() ) { this.widget.close(); } } getData(params) { return {}; } getWidget(params) { return null; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings