W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Re: [webidl] Add a [Maplike] tag?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 27 Jun 2013 18:08:06 -0400
Message-ID: <51CCB7C6.70102@mit.edu>
To: public-script-coord@w3.org
On 6/27/13 2:24 PM, Tab Atkins Jr. wrote:
> One thing that seems to be lacking is a way to set a [MapClass]
> attribute with an existing Map.  Right now I'd have to do:
>
> el.style.var.clear();
> m.forEach(function(v,k) { el.style.var.set(k,v); });

How would one copy one Map into another in ES?  Presumably whatever the 
idiom is for that is how this should work...

-Boris
Received on Thursday, 27 June 2013 22:08:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:49 UTC