()
| 423 | @i18n("@ui5/webcomponents") |
| 424 | static i18nBundle: I18nBundle; |
| 425 | constructor() { |
| 426 | super(); |
| 427 | this._deactivate = () => { |
| 428 | if (activeButton) { |
| 429 | activeButton._setActiveState(false); |
| 430 | } |
| 431 | }; |
| 432 | |
| 433 | this._onclickBound = e => { |
| 434 | if (e instanceof CustomEvent) { |
| 435 | return; |
| 436 | } |
| 437 | |
| 438 | this._onclick(e); |
| 439 | }; |
| 440 | |
| 441 | if (!this._clickHandlerAttached) { |
| 442 | this.addEventListener("click", this._onclickBound); |
| 443 | this._clickHandlerAttached = true; |
| 444 | } |
| 445 | |
| 446 | if (!isGlobalHandlerAttached) { |
| 447 | document.addEventListener("mouseup", this._deactivate); |
| 448 | |
| 449 | isGlobalHandlerAttached = true; |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | _ontouchstart() { |
| 454 | if (this.nonInteractive) { |
nothing calls this directly
no test coverage detected