From 8cdf046b7148fbe2e3a9c169a17e4ddf6dab69f3 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Mon, 6 Jun 2005 20:48:24 +0000 Subject: [PATCH] Bug 291265 strict javascript warnings in findbar.js patch by hskupin@gmail.com r=bsmedberg a=bsmedberg --- .../components/typeaheadfind/content/findBar.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/toolkit/components/typeaheadfind/content/findBar.js b/toolkit/components/typeaheadfind/content/findBar.js index c0efe520b9c..a133330ede8 100755 --- a/toolkit/components/typeaheadfind/content/findBar.js +++ b/toolkit/components/typeaheadfind/content/findBar.js @@ -536,7 +536,7 @@ function flashFindBar() clearInterval(gFlashFindBarTimeout); findToolbar.removeAttribute("flash"); gFlashFindBarCount = 6; - return true; + return; } findToolbar.setAttribute("flash", (gFlashFindBarCount % 2 == 0) ? "false" : "true"); @@ -560,8 +560,10 @@ function onFindCmd() function onFindAgainCmd() { var findString = getBrowser().findString; - if (!findString) - return onFindCmd(); + if (!findString) { + onFindCmd(); + return; + } var res = findNext(); if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) { @@ -579,8 +581,10 @@ function onFindAgainCmd() function onFindPreviousCmd() { var findString = getBrowser().findString; - if (!findString) - return onFindCmd(); + if (!findString) { + onFindCmd(); + return; + } var res = findPrevious(); if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {