arrow function syntax simplified
Kevin Smith
khs4473 at gmail.com
Wed Mar 28 12:26:28 PDT 2012
>
> - Incorrectly using "return" for those that don't fully understand TCP.
>
As an illustration, consider this case:
element.onclick = (evt) => do {
if (this.alreadyWaitingForAjaxResponse)
return;
this.startAnAjaxRequest();
};
Presumably the early return will throw an exception, since the binding
context has exited before the event handler is called. (Please correct me
if I'm wrong.)
kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120328/bbbdf7e5/attachment-0001.html>
More information about the es-discuss
mailing list