On May 29, 2012, at 9:59 AM, Nicholas C. Zakas wrote:

> var element = document.getElementById("myDiv");
> element.{
>    innerHTML: "Hello world!",
>    className: "enabled"
> };

Great example. With my proposed operator, it would instead be:

var element = document.getElementById("myDiv");
element.{
    innerHTML = "Hello world!";
    className = "enabled";
}

Looks like the corresponding long-hand, and does the same thing as the 
corresponding long-hand.

Dave

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to