Fix onload event
This commit is contained in:
parent
06ec0c0d85
commit
57aa92bf83
@ -875,7 +875,7 @@ window.PIXI.loader
|
|||||||
.add(nodeImg)
|
.add(nodeImg)
|
||||||
.load(loopStart);
|
.load(loopStart);
|
||||||
|
|
||||||
window.onload = function () {
|
window.addEventListener('load', function () {
|
||||||
var canvas, tweeningInputs, debugCheckbox, fpsCheckbox, nodeCheckbox, linesCheckbox;
|
var canvas, tweeningInputs, debugCheckbox, fpsCheckbox, nodeCheckbox, linesCheckbox;
|
||||||
canvas = document.getElementsByTagName('canvas')[0];
|
canvas = document.getElementsByTagName('canvas')[0];
|
||||||
canvas.setAttribute('tabindex', 0);
|
canvas.setAttribute('tabindex', 0);
|
||||||
@ -1150,4 +1150,4 @@ window.onload = function () {
|
|||||||
linesCheckbox.addEventListener('change', function (e) {
|
linesCheckbox.addEventListener('change', function (e) {
|
||||||
toggleLines();
|
toggleLines();
|
||||||
});
|
});
|
||||||
};
|
}, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user