On Sat, Jul 20, 2013 at 3:27 PM, Till Schneidereit
<[email protected]> wrote:
> On Sun, Jul 21, 2013 at 12:17 AM, Andrew Fedoniouk
> <[email protected]> wrote:
>>
>> Unfortunately setters do not work with jQuery where
>> chained calls are used frequently:
>>
>> el.myplugin({....})
>>   .addClass("myplugin");
>>
>> that with new syntax may look like as:
>>
>> el.myplugin: { params }
>>   .addClass: "myplugin";
>
>
> This is ambiguous. Is `addClass` a method on the `{ params }` object, or is
> it a chained method call, as you want it to be? That is, the example could
> just as well translate to this:
>
> el.myplugin({ params }.addClass("myplugin"));

Yep, my bad, wrong example.

--
Andrew Fedoniouk.

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

Reply via email to