Bug 539884 - else-after-return in whereToOpenLink. r=gavin

This commit is contained in:
Dão Gottwald 2010-01-19 20:18:40 +01:00
parent 31276f0b51
commit 4eb72a5b39

View File

@ -143,24 +143,19 @@ function whereToOpenLink( e, ignoreButton, ignoreAlt )
// Don't do anything special with right-mouse clicks. They're probably clicks on context menu items. // Don't do anything special with right-mouse clicks. They're probably clicks on context menu items.
#ifdef XP_MACOSX #ifdef XP_MACOSX
if (meta || (middle && middleUsesTabs)) { if (meta || (middle && middleUsesTabs))
#else #else
if (ctrl || (middle && middleUsesTabs)) { if (ctrl || (middle && middleUsesTabs))
#endif #endif
if (shift) return shift ? "tabshifted" : "tab";
return "tabshifted";
else if (alt)
return "tab";
}
else if (alt) {
return "save"; return "save";
}
else if (shift || (middle && !middleUsesTabs)) { if (shift || (middle && !middleUsesTabs))
return "window"; return "window";
}
else { return "current";
return "current";
}
} }
/* openUILinkIn opens a URL in a place specified by the parameter |where|. /* openUILinkIn opens a URL in a place specified by the parameter |where|.