error on window.location.hash : <p>i have rails  app where i modify some files and then run bundle instal and assets:precompile.</p>

<p>after that  i have error in file wich was not changed.
part of file where error happened:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function openCurrentTab() {
var hash = window.location.hash || '#info'
$('a[href=' + hash + ']').tab('show')
}

$(function() {
openCurrentTab()

$('#outage-tabs &gt; li &gt; a').click(function(evt) {
  evt.preventDefault()
  $(this).tab('show')
  history.pushState(null, null, this.hash)
})
})
window.onpopstate = openCurrentTab
&lt;/script&gt;
</code></pre>

<p>error (in console)</p>

<pre><code>application-76c7fea….js:24 Uncaught Error: Syntax error, unrecognized    expression: a[href=#info]
</code></pre>

<p>thank for help</p>
