mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:17:59 +01:00
use object literal syntax rather than explicitly calling the constructor
This commit is contained in:
@@ -192,7 +192,7 @@ liberator.Addressbook = function () //{{{
|
|||||||
if (newMail)
|
if (newMail)
|
||||||
{
|
{
|
||||||
// Now we have to create a new message
|
// Now we have to create a new message
|
||||||
var args = new Object();
|
var args = {};
|
||||||
args.to = addresses.map(function (address)
|
args.to = addresses.map(function (address)
|
||||||
{
|
{
|
||||||
return "\"" + address[0].replace(/"/g, "") + " <" + address[1] + ">\"";
|
return "\"" + address[0].replace(/"/g, "") + " <" + address[1] + ">\"";
|
||||||
|
|||||||
@@ -678,7 +678,7 @@ liberator.Mail = function () //{{{
|
|||||||
"Write a new message",
|
"Write a new message",
|
||||||
function (args, special, count)
|
function (args, special, count)
|
||||||
{
|
{
|
||||||
var mailargs = new Object();
|
var mailargs = {};
|
||||||
mailargs.to = args.arguments.join(", ");
|
mailargs.to = args.arguments.join(", ");
|
||||||
mailargs.subject = args["-subject"];
|
mailargs.subject = args["-subject"];
|
||||||
mailargs.bcc = args["-bcc"];
|
mailargs.bcc = args["-bcc"];
|
||||||
|
|||||||
Reference in New Issue
Block a user