arrow function syntax simplified
Kevin Smith
khs4473 at gmail.com
Fri Mar 30 09:13:52 PDT 2012
What about something similar to this in the $ function?
// Handle $(event)
if ( selector.currentTarget && selector.currentTarget.nodeType ) {
this.context = this[0] = selector.currentTarget;
this.length = 1;
return this;
}
kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120330/16cdedef/attachment.html>
More information about the es-discuss
mailing list