lib/tools/image

Create and return an image Object, with assigned load/error eventhadles and source.

Source:
Parameters:
Name Type Description
src functstringion

Optinal image path url

load function

Function to be called on successfully

error function

Function to be called on error

Returns:
Type
HTMLImageElement