modernizing the undefined test in println

This commit is contained in:
jband%netscape.com 1999-09-02 00:11:16 +00:00
Родитель e95b046249
Коммит f1fd6795b4
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -21,7 +21,7 @@
// our standard print function
function println(s)
{
if(typeof(this.document) == "undefined")
if(this.document === undefined)
print(s);
else
dump(s+"\n");

Просмотреть файл

@ -51,7 +51,7 @@ var data = [
function println(s)
{
if(typeof(this.document) == "undefined")
if(this.document === undefined)
print(s);
else
dump(s+"\n");