Fix local search which was broken by correcting JS issues found by JSHint (commit 46d08152a30d)

This commit is contained in:
Jonathan Waltman 2013-01-10 21:58:18 -06:00
parent e26b02e23e
commit 4eead33488

View File

@ -363,7 +363,7 @@ var Search = {
for (i = 0; i < searchterms.length; i++) {
var word = searchterms[i];
// no match but word was a required one
if ((files = terms[word]) === null)
if (!(files = terms[word]))
break;
if (files.length === undefined) {
files = [files];