<p>Can't rely on checking location.pathname -- inside unload, it already contains<br>
the new path. Fortunately, checking is unnecessary.</p>
<p>Fixes TypeError: Cannot call method 'split' of undefined.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website history-fix</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/614'>https://github.com/openstreetmap/openstreetmap-website/pull/614</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Unconditionally unbind moveend event</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/614/files#diff-0">app/assets/javascripts/index/history.js</a>
(5)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/614.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/614.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/614.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/614.diff</a></li>
</ul>