rschmukler / powerdrill

Mandrill, with Power
55 stars 9 forks source link

How can I push additional mergeVars objects? #1

Closed geekything closed 10 years ago

geekything commented 10 years ago

Hi,

Love Powerdrill!

I'd like to be able to add to an already defined object. The code to define the mergeVar would be something like this:

message.mergeVar('someone@somewhere.com', {SELECTIONS: 'Some selection'});

I'd like to push an addition "SELECTIONS" onto it....is there any way to do that?

Thanks!

-m

rschmukler commented 10 years ago

You would have to overwrite it by doing the following:

message.mergeVar('someone@somewhere.com', {SELECTIONS: ['Some selection']});

// Later

message.mergeVar('someone@somewhere.com', {SELECTIONS: ['Some selection', 'another one']});
rschmukler commented 10 years ago

Closing this as I assume it is resolved. If not, please feel free to reopen.