Jeremy Martin (2013-07-10T17:57:01.000Z)
domenic at domenicdenicola.com (2013-07-16T14:23:33.560Z)
> Events are already part of the interface of objects as people use them: > > * in Node.js, events are documented at the same level than properties and methods. > * In new FirefoxOS WebAPIs, pretty much every new object inherits from EventTarget. I don't think that Node.js is a relevant example here. Events are only exposed on instances (or subclasses) of EventEmitter. This happens to include a lot of the core objects, but it is nonetheless implemented via the [[Prototype]] and object-level properties (rather than anything resembling a MOP). I'm less familiar with FirefoxOS WebAPIs, but the same appears to be true here as well, unless I'm missing something.
github at esdiscuss.org (2013-07-12T02:27:45.728Z)
> Events are already part of the interface of objects as people use them: > > * in Node.js, events are documented at the same level than properties and methods. > * In new FirefoxOS WebAPIs, pretty much every new object inherits from EventTarget. I don't think that Node.js is a relevant example here. Events are only exposed on instances (or subclasses) of EventEmitter. This happens to include a lot of the core objects, but it is nonetheless implemented via the [[Prototype]] and object-level properties (rather than anything resembling a MOP). I'm less familiar with FirefoxOS WebAPIs, but the same appears to be true here as well, unless I'm missing something.