<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/a796c41881c26e6da8828a71dbfb533613e5a83f/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/a796c41881c26e6da8828a71dbfb533613e5a83f"><tt>a796c41</tt></a> added a callback to <code class="notranslate">function initialize()</code> in <code class="notranslate">note.js</code>. 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 <code class="notranslate">initialize()</code> is the same as running <code class="notranslate">initialize(); callback();</code></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5289'>https://github.com/openstreetmap/openstreetmap-website/pull/5289</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5289/commits/34e06204636f4390b8b99fdce71af87d9a00663b" class="commit-link">34e0620</a> Remove callback from initialize() in note js controller</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5289/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5289/files#diff-8f18485b763264500054435af432745e2a51b4402140728dc4df89024768b71b">app/assets/javascripts/index/note.js</a>
(22)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5289.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5289.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5289.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5289.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5289">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJC2AOLUJBLXBOOZ4LZ5JSSRAVCNFSM6AAAAABQTSEIACVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTINBZGU3TIMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKBYQOHBE4A7GYCDWDZ5JSSRA5CNFSM6AAAAABQTSEIACWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJXVQJ7Y.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5289</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5289",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5289",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>