[web-audio-api] It makes no sense to use EventListener for onaudioprocess if ScriptProcessorNode isn't EventTarget (#116)

> Originally reported on W3C Bugzilla [ISSUE-20764](https://www.w3.org/Bugs/Public/show_bug.cgi?id=20764) Thu, 24 Jan 2013 22:57:14 GMT
> Reported by Olli Pettay
> Assigned to 

First, EventListener should not be used for onfoo handlers.
EventHandler is the right type (or in very special legacy cases OnErrorEventHandler).

But more importantly, if ScriptProcessorNode isn't EventTarget dispatching
event to it isn't really possible, and the event wouldn't have any
.target.

So, either ScriptProcessorNode needs to become EventTarget somehow, and 
get normal event handling, or the callback needs to not use Event objects.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/116

Received on Wednesday, 11 September 2013 14:28:53 UTC