<p>It's required on the main page so will nearly always be loaded anyway.</p>
<p>Enclosed in anonymous function to avoid leaking <code>onclose</code> global variable.</p>
<hr>
<h4>You can merge this Pull Request by running:</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website sidebar_js</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/76'>https://github.com/openstreetmap/openstreetmap-website/pull/76</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Remove unnecessary arguments to sidebar partial</li>
<li>Remove unused function</li>
<li>Move sidebar JS to application bundle</li>
</ul>
<h4>File Changes</h4>
<ul>
<li><strong>M</strong> app/assets/javascripts/application.js (1)</li>
<li><strong>A</strong> app/assets/javascripts/sidebar.js (39)</li>
<li><strong>M</strong> app/views/site/_sidebar.html.erb (44)</li>
<li><strong>M</strong> app/views/site/edit.html.erb (2)</li>
<li><strong>M</strong> app/views/site/index.html.erb (2)</li>
</ul>
<h4>Patch Links</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/76.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/76.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/76.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/76.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/76'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpmLWAu4oQih75mggZl1E8_mfPvz2gVgP10NM0aj8NRUL.gif' height='1' width='1'>