1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Use ===, which checks for equality of value as well as equality of type,

instead of doing both checks separately.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-29 07:32:12 +00:00 committed by Miciah Dashiel Butler Masters
parent 79cf499cf9
commit b9a3855f98

View File

@ -20,7 +20,7 @@ elinks.goto_url_hooks = new Array();
elinks.goto_url_hook = function (url) { elinks.goto_url_hook = function (url) {
for (var i in elinks.goto_url_hooks){ for (var i in elinks.goto_url_hooks){
url = elinks.goto_url_hooks[i](url); url = elinks.goto_url_hooks[i](url);
if (typeof(url) == 'boolean' && !url) return false; if (false === url) return false;
} }
return url; return url;
@ -30,7 +30,7 @@ elinks.follow_url_hooks = new Array();
elinks.follow_url_hook = function (url) { elinks.follow_url_hook = function (url) {
for (var i in elinks.follow_url_hooks) { for (var i in elinks.follow_url_hooks) {
url = elinks.follow_url_hooks[i](url); url = elinks.follow_url_hooks[i](url);
if (typeof(url) == 'boolean' && !url) return false; if (false === url) return false;
} }
return url; return url;