mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Make code more consistent
This commit is contained in:
parent
d01f4ef83e
commit
53d728cf3a
@ -9,8 +9,8 @@
|
||||
version = '';
|
||||
}
|
||||
|
||||
if (!window.onPiskelReady) {
|
||||
window.onPiskelReady = [];
|
||||
if (!window.piskelReadyCallbacks) {
|
||||
window.piskelReadyCallbacks = [];
|
||||
}
|
||||
|
||||
window._onPiskelReady = function () {
|
||||
@ -24,8 +24,8 @@
|
||||
delete window.done;
|
||||
|
||||
// Run Piskel ready callbacks
|
||||
for (var i in window.onPiskelReady) {
|
||||
window.onPiskelReady[i]();
|
||||
for (var i = 0; i < window.piskelReadyCallbacks.length; i++) {
|
||||
window.piskelReadyCallbacks[i]();
|
||||
}
|
||||
};
|
||||
|
||||
@ -83,6 +83,6 @@
|
||||
}
|
||||
|
||||
loadStyle('css/piskel-style-packaged' + version + '.css');
|
||||
loadScript(script, "_onPiskelReady()");
|
||||
loadScript(script, '_onPiskelReady()');
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue
Block a user