Bug 1933084 - Move renameProperty helper into lib/irc.js for cZ. r=frg
This commit is contained in:
Родитель
1b6c1c128c
Коммит
05c76338e8
|
@ -31,6 +31,17 @@ const JSIRCV3_SUPPORTED_CAPS = [
|
|||
"userhost-in-names",
|
||||
];
|
||||
|
||||
function renameProperty(obj, oldname, newname)
|
||||
{
|
||||
|
||||
if (oldname == newname)
|
||||
return;
|
||||
|
||||
obj[newname] = obj[oldname];
|
||||
delete obj[oldname];
|
||||
|
||||
}
|
||||
|
||||
function userIsMe (user)
|
||||
{
|
||||
|
||||
|
|
|
@ -478,17 +478,6 @@ function toOpenWindowByType(inType, url, features)
|
|||
window.open(url, "_blank", features);
|
||||
}
|
||||
|
||||
function renameProperty (obj, oldname, newname)
|
||||
{
|
||||
|
||||
if (oldname == newname)
|
||||
return;
|
||||
|
||||
obj[newname] = obj[oldname];
|
||||
delete obj[oldname];
|
||||
|
||||
}
|
||||
|
||||
function getContentWindow(frame)
|
||||
{
|
||||
try
|
||||
|
|
Загрузка…
Ссылка в новой задаче