From ffbe5fa20c1c139b31cc7ec596a102a4e8e92479 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 29 Jul 2008 22:09:00 +0000 Subject: [PATCH] use object literal syntax rather than explicitly calling the constructor --- content/addressbook.js | 2 +- content/mail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/addressbook.js b/content/addressbook.js index 9985f9cf..821d5417 100644 --- a/content/addressbook.js +++ b/content/addressbook.js @@ -192,7 +192,7 @@ liberator.Addressbook = function () //{{{ if (newMail) { // Now we have to create a new message - var args = new Object(); + var args = {}; args.to = addresses.map(function (address) { return "\"" + address[0].replace(/"/g, "") + " <" + address[1] + ">\""; diff --git a/content/mail.js b/content/mail.js index 6f30eeb2..1fe02218 100644 --- a/content/mail.js +++ b/content/mail.js @@ -678,7 +678,7 @@ liberator.Mail = function () //{{{ "Write a new message", function (args, special, count) { - var mailargs = new Object(); + var mailargs = {}; mailargs.to = args.arguments.join(", "); mailargs.subject = args["-subject"]; mailargs.bcc = args["-bcc"];