On Sat, Jul 20, 2013 at 3:55 PM, Till Schneidereit
<[email protected]> wrote:
> On Sun, Jul 21, 2013 at 12:44 AM, Rick Waldron <[email protected]>
> wrote:
...
>>
>>
>> No it's not, {}.addClass throws a syntax error exception:
>>
>> {foo:1}.foo; //  SyntaxError at the "."
>>
>> ({foo:1}).foo; // 1
>
>
> Oh, right, thanks.
>
> @Andrew, is the idea to use this syntax only when passing either object or
> function literals? For those, it wouldn't be ambiguous, indeed. For
> everything else, though, it would be:
>
> el.myplugin: objectwithparams
>   .addClass: "myplugin";

Yeah, that's kind of weak moment.

--
Andrew Fedoniouk.

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

Reply via email to