How to use the @aurelia/runtime-html.DOM.createCustomEvent function in @aurelia/runtime-html

To help you get started, we’ve selected a few @aurelia/runtime-html examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / packages / fetch-client / src / http-client.ts View on Github external
private trackRequestStart(): void {
    this.isRequesting = !!(++this.activeRequestCount);
    if (this.isRequesting) {
      const evt = DOM.createCustomEvent('aurelia-fetch-client-request-started', { bubbles: true, cancelable: true });
      DOM.window.setTimeout(() => { DOM.dispatchEvent(evt); }, 1);
    }
  }
github aurelia / aurelia / packages / fetch-client / src / http-client.ts View on Github external
private trackRequestEnd(): void {
    this.isRequesting = !!(--this.activeRequestCount);
    if (!this.isRequesting) {
      const evt = DOM.createCustomEvent('aurelia-fetch-client-requests-drained', { bubbles: true, cancelable: true });
      DOM.window.setTimeout(() => { DOM.dispatchEvent(evt); }, 1);
    }
  }
github aurelia / aurelia / packages / fetch-client / dist / esnext / http-client.js View on Github external
trackRequestEnd() {
        this.isRequesting = !!(--this.activeRequestCount);
        if (!this.isRequesting) {
            const evt = DOM.createCustomEvent('aurelia-fetch-client-requests-drained', { bubbles: true, cancelable: true });
            DOM.window.setTimeout(() => { DOM.dispatchEvent(evt); }, 1);
        }
    }
    processRequest(request, interceptors) {
github aurelia / aurelia / packages / fetch-client / dist / esnext / http-client.js View on Github external
trackRequestStart() {
        this.isRequesting = !!(++this.activeRequestCount);
        if (this.isRequesting) {
            const evt = DOM.createCustomEvent('aurelia-fetch-client-request-started', { bubbles: true, cancelable: true });
            DOM.window.setTimeout(() => { DOM.dispatchEvent(evt); }, 1);
        }
    }
    trackRequestEnd() {