Function
Static Public Summary | ||
public |
makeCustomError(name: *): Error Make a custom error "class". |
|
public |
onDocumentReady(callback: *) Wrap a callback that is called when the document is done loading. |
Static Public
public makeCustomError(name: *): Error source
import makeCustomError from 'ievv_jsbase/makeCustomError.js'
Make a custom error "class".
Makes an old style prototype based error class.
Params:
Name | Type | Attribute | Description |
name | * | The name of the error class. |
Example:
export let NotFoundError = makeCustomError('NotFoundError');
public onDocumentReady(callback: *) source
import onDocumentReady from 'ievv_jsbase/utils/onDocumentReady.js'
Wrap a callback that is called when the document is done loading.
Params:
Name | Type | Attribute | Description |
callback | * | A callback function. Called without any arguments. |