Commit 150d0d4a authored by jake%acutex.net's avatar jake%acutex.net

Re-fixing bug 37339 - Checking an undefined variable for a specific value didn't…

Re-fixing bug 37339 - Checking an undefined variable for a specific value didn't work in Netscape 4 (and was probably a strict warning everywhere else). Fix by Christian Reis <kiko@async.com.br> r= afranke, jake
parent 87a32c85
...@@ -46,7 +46,7 @@ function do_shift(l) { ...@@ -46,7 +46,7 @@ function do_shift(l) {
} }
function go_to (url) { function go_to (url) {
if (sidebar == 1) { if ( typeof sidebar != "undefined" && sidebar == 1 ) {
load_relative_url(url); load_relative_url(url);
} else { } else {
document.location.href = url; document.location.href = url;
......
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