зеркало из https://github.com/mozilla/gecko-dev.git
modernizing the undefined test in println
This commit is contained in:
Родитель
e95b046249
Коммит
f1fd6795b4
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче