fix: A wrong conditoin check break search feature on first page that is usually index.rst. This issue was introduced at 46d0815, cfbdd84.

This commit is contained in:
Takayuki Shimizukawa 2013-09-26 00:10:23 +09:00
parent 5def0cc353
commit 445bb5daec
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Bugs fixed
* #1265: Fix i18n: crash when translating section name that is pointed from
named target.
* A wrong conditoin check break search feature on first page that is usually
index.rst. This issue was introduced at 1.2b1
Release 1.2 beta2 (released Sep 17, 2013)

View File

@ -370,7 +370,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]))
if ((files = terms[word]) === undefined)
break;
if (files.length === undefined) {
files = [files];