Home Manual Reference Source

Function

Static Public Summary
public

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:

NameTypeAttributeDescription
name *

The name of the error class.

Return:

Error

The created 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:

NameTypeAttributeDescription
callback *

A callback function. Called without any arguments.