mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 291265 strict javascript warnings in findbar.js
patch by hskupin@gmail.com r=bsmedberg a=bsmedberg
This commit is contained in:
parent
767ea18b82
commit
cb977fa5f8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user