Commit ccd9d172 authored by jake%acutex.net's avatar jake%acutex.net

Fix for bug 83619 - QuickSearch was crashing Netscape 4.76 and 4.77 on Unix

Patch by Andreas Franke <afranke@ags.uni-sb.de>
parent 4ac17e8c
......@@ -72,8 +72,10 @@ function isPrefix(s1, s2) {
}
function member(s, l) {
return (l.length > 0)
&& ((s == l[0]) || member(s, l.slice(1)));
for (var i=0; i<l.length; i++) {
if (l[i] == s) return true;
}
return false;
}
function add(s, l) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment