Class CAAT.Module.Preloader.Preloader
Defined in: Preloader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Callback error loading.
|
|
Callback finished loading.
|
|
Callback element loaded.
|
|
a list of elements to load.
|
|
elements counter.
|
|
loaded elements count.
|
Method Attributes | Method Name and Description |
---|---|
<private> |
__init()
|
<private> |
__onerror(d)
|
<private> |
__onload(d)
|
addElement(id, path)
|
|
clear()
|
|
load(onfinished, onload_one, onerror)
|
|
setBaseURL(base)
|
Field Detail
cerrored
Callback error loading.
cfinished
Callback finished loading.
cloaded
Callback element loaded.
elements
a list of elements to load.
imageCounter
elements counter.
loadedCount
loaded elements count.
Method Detail
<private>
__init()
<private>
__onerror(d)
- Parameters:
- d
<private>
__onload(d)
- Parameters:
- d
addElement(id, path)
- Parameters:
- id
- path
clear()
load(onfinished, onload_one, onerror)
- Parameters:
- onfinished
- onload_one
- onerror
setBaseURL(base)
- Parameters:
- base