arrow function syntax simplified

Kevin Smith khs4473 at gmail.com
Fri Mar 30 06:43:45 PDT 2012


>
>     // Or maybe change the framework to better take advantage of arrows?:
>     $("body").on("click", e => $(e).hide());
>

To clarify, the $ function could hypothetically take an event object and
return the set containing event.currentTarget.

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120330/a24984d6/attachment.html>


More information about the es-discuss mailing list