Occurs when the Run method is called, sending out ImageLoaderPreRunEventArgs.
Object.defineProperty(ImageLoader.prototype,'preRun',
get: function(),
set: function(value)
)
function preRun.add(function(sender, e));
function preRun.remove(function(sender, e));
preRun: void;
The PreRun event handler is useful in situations where Run is called based on a page event.
The Cancel property, when set to true, will cause the Fail event to be called. This is different than the Abort method, which will fail silently and not call any callbacks.
Parameter | Type | Description |
---|---|---|
sender | var | The source of the event. |
e | ImageLoaderPreRunEventArgs | The event data. |