From 8f10c3d562bfd92d2335eb13a8c7ec78cd750c81 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 17 Sep 2008 06:08:31 +0000 Subject: [PATCH] fix text searching in frameset pages --- content/find.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/find.js b/content/find.js index 145af32e..cb3a997a 100644 --- a/content/find.js +++ b/content/find.js @@ -149,7 +149,7 @@ liberator.Search = function () //{{{ highlightDoc: function highlightDoc(win, aWord) { - Array.forEach(win.frames, function (frame) highlightDoc(aWord, frame)); + Array.forEach(win.frames, function (frame) highlightObj.highlightDoc(frame, aWord)); var doc = win.document; if (!doc || !(doc instanceof HTMLDocument)) @@ -157,7 +157,7 @@ liberator.Search = function () //{{{ if (!aWord) { let elems = doc.getElementsByClassName("__liberator-search"); - for (let i=elems.length; --i >= 0;) + for (let i = elems.length; --i >= 0;) { let elem = elems[i]; let docfrag = doc.createDocumentFragment();