Interface: Loader

Loader

Interface for classes that can be used to load data for MultiLoader.

Methods


load(callback)

Load data asynchronously with a callback.

Parameters:
Name Type Description
callback Loader~dataCallback

the callback to invoke with the results

Returns:

the loader object

Type
Loader

Type Definitions


dataCallback( [error], data)

The loader callback function.

Parameters:
Name Type Argument Description
error Error <optional>

an error if a failure occurred

data Object

the result data