12 lines
186 B
JavaScript
12 lines
186 B
JavaScript
onready_callbacks = [];
|
|
function onready(fnc) {
|
|
onready_callbacks.push(fnc);
|
|
}
|
|
|
|
function ready() {
|
|
for (var i = 0; i < onready_callbacks.length; i++) {
|
|
onready_callbacks[i]();
|
|
}
|
|
}
|
|
|