W3cubDocs

/Haxe JavaScript

ExtendableEvent

package js.html

extends Event

extended by ExtendableMessageEvent, FetchEvent, NotificationEvent

@:native("ExtendableEvent") Available on js

The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.

Documentation ExtendableEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (type:String, ?eventInitDict:ExtendableEventInit)

Throws:

null DOMError

Methods

waitUntil (p:Promise<Dynamic>):Void

Throws:

null DOMError

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ExtendableEvent.html