stop a previously started loading task that was started with BG.charts.Object.State::startLoading
When called a label for which no task is currently pending an exception will be thrown
Optional
label: stringOptional
error: Erroran optional error that was encountered by this loading task
retrieves the error with the highest priority if one is available returns null if no errors are stored in this state object
if the optional domain parameter is supplied, only errors of that domain are considered
Optional
domain: stringchecks if the associated object is currently loading
if an optional label is specified will only return true if a task with that label is currently loading e.g. startLoading was called with that label, but stopLoading was not yet called
Optional
label: stringoptional name of the task to be checked
by default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default which helps finding memory leaks. Obviously not all Emitters should be limited to 10. This function allows that limit to be increased. Set to zero for unlimited.
start a loading task BG.charts.Object.State::endLoading needs to be called when the task is finished Multiple tasks can be running at the same time
For every label only one task can be active at a time; trying to start another one with the same label before stopping the pending one will throw an exception
Optional
label: stringStatic
guardStatic
listenerStatic
set
This object encapsulates all state parameters for an instance of BG.charts.Object: loading started/stopped/destroyed errors Changes to this object are automatically emitted by it's parent as a
stateChanged
event