Using monocle mustache for chaining.

Erik Arvidsson erik.arvidsson at gmail.com
Fri Nov 11 12:10:48 PST 2011


On Fri, Nov 11, 2011 at 11:38, Oliver Hunt <oliver at apple.com> wrote:
> But ignoring that, the decision we made at last november's meeting was that DOM attributes would be specified as setters on the prototype, so
>
> someElement.style.{background:"blue", border: "2px solid black"}
>
> would add to own properties to the style instance, but not actually change the style properties in the CSSOM, as .{ shares the normal object literal semantic of only performing own property assignment.

Yeah, sorry for being hand wavey here. The intended behavior I
envisioned would be [[Put]] and not define property. Maybe that is
pushing the limits too far?

-- 
erik


More information about the es-discuss mailing list