Closed AntonKhorev closed 1 month ago
https://github.com/openstreetmap/openstreetmap-website/commit/a796c41881c26e6da8828a71dbfb533613e5a83f added a callback to function initialize() in note.js. It's called at the very end of the function. Not scheduled in some event, not skipped by early termination, nothing runs after it. Passing a callback to initialize() is the same as running initialize(); callback();
function initialize()
note.js
initialize()
initialize(); callback();
Looks good to me, thanks.
https://github.com/openstreetmap/openstreetmap-website/commit/a796c41881c26e6da8828a71dbfb533613e5a83f added a callback to
function initialize()
innote.js
. It's called at the very end of the function. Not scheduled in some event, not skipped by early termination, nothing runs after it. Passing a callback toinitialize()
is the same as runninginitialize(); callback();