On Tue, Sep 21, 2010 at 12:51 AM, Devdatta Akhawe <dev.akh...@gmail.com> wrote:
> On 21 September 2010 00:47, Ojan Vafai <o...@chromium.org> wrote:
>> How about setParameter(name, value...) that takes var_args number of values?
>> Alternately, it could take either a DOMString or an Array<DOMString> for the
>> value. I prefer the var_args.
>
> What happens when I do
> setParameter('x','a','b','c');
>
> and now want to add another - I will have to do weird things like
> getting the parameter via getAllParameter and then append to the array
> and function.call or something like that
>
> doesn't look very nice according to me - I like the separation into 2
> APIs because I think that makes the common case of single parameter
> values clean and robust

Perhaps appendParameter("x", "a", "b", "c") ?

Adam

Reply via email to