waldron.rick at gmail.com
Tue Aug 5 21:38:56 PDT 2014
On Tuesday, August 5, 2014, Domenic Denicola <domenic at domenicdenicola.com>
> I sympathize; I have always found the fact that bare `super()` works to
> be confusing.
When a bare super() call appears in a method (whether constructor or not)
it can only have _one_ _meaning_ and that's a call to a method of the same
name in the parent class. This isn't particularly innovative: John Resig's
clones, forks and spin-offs exist) "abstract class" techniques—provides
`this._super()` which does the same thing that ES6 super() does. This
pattern existed before and has been repeated throughout many libraries that
have stood out over the years: Prototype, Dojo, Ext.js and certainly
others. CoffeeScript implements super() this way as well.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss