fix for bug 61805 javascript strict warnings in abAddressBookNameDialog.js

patch by maolson@earthlink.net r=timeless, a=alecf
This commit is contained in:
timeless%mac.com 2001-01-26 03:39:38 +00:00
parent 86efe6a23a
commit c59c223069

View File

@ -5,16 +5,15 @@ function abNameOnLoad()
doSetOKCancel(abNameOKButton, 0);
// look in arguments[0] for parameters
if (window.arguments && window.arguments[0])
if ("arguments" in window && window.arguments[0])
{
if ( window.arguments[0].title )
if ("title" in window.arguments[0])
{
dump("title = " + window.arguments[0].title + "\n");
var title = window.arguments[0].title;
top.window.title = title;
}
if ( window.arguments[0].okCallback )
if ("okCallback" in window.arguments[0])
top.okCallback = window.arguments[0].okCallback;
}