mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
fix for bug 61805 javascript strict warnings in abAddressBookNameDialog.js
patch by maolson@earthlink.net r=timeless, a=alecf
This commit is contained in:
parent
86efe6a23a
commit
c59c223069
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user