Syntax to get same object that method was called on (Easy methodchaining)

Salvador de la Puente González salva at unoyunodiez.com
Mon Oct 26 08:59:33 UTC 2015


If that exists I think it should be the context object the function is
called with. So `foo()#` is simply undefined in strict mode.
El 26/10/2015 7:48, "Edwin Reynoso" <eorroe at gmail.com> escribió:

> That's not possible @Eric
>
> On Mon, Oct 26, 2015 at 2:20 AM, Eric Suen <eric.suen.tech at gmail.com>
> wrote:
>
>> with
>>
>>  obj.(doSomething(), doSomething2());
>>
>> you don’t need to introduce new operator.
>>
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151026/5104752a/attachment.html>


More information about the es-discuss mailing list