Quantcast
Channel: User hurrymaplelad - Stack Overflow
Viewing all articles
Browse latest Browse all 41

Comment by hurrymaplelad on Javascript "this" in static methods

$
0
0
@MarkReed @Esailija I enjoyed this discussion! ActionScript3 (an ECMAScript derivative) offers an interesting example of how we might expect "first-class" methods to behave in a JS-like language. (reference - search "bound method") In AS3, unlike in JS, expressions that reference a method always evaluate to a bound method, so in addEventListener('e', foo.bar), this is always bound to foo in bar.

Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>