Skip to content

Commit c63c5b7

Browse files
committed
Correcting comments in main.js for _global init
1 parent 9a6421f commit c63c5b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,14 +698,15 @@ class p5 {
698698
// detects capitalization mistakes only ( Setup, SETUP, MouseClicked, etc)
699699
p5._checkForUserDefinedFunctions(this);
700700
}
701-
// Bind events to window (not using container div bc key events don't work)
701+
702702
this._updateWindowSize();
703703

704704
// call any registered init functions
705705
this.callRegisteredHooksFor('init');
706706
// Set up promise preloads
707707
this._setupPromisePreloads();
708708

709+
// Bind events to window (not using container div bc key events don't work)
709710
for (const e in this._events) {
710711
const f = this[`_on${e}`];
711712
if (f) {

0 commit comments

Comments
 (0)