[web-audio-api] (NodeCreation): Node creation syntax (#224)

> Originally reported on W3C Bugzilla [ISSUE-17408](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17408) Tue, 05 Jun 2012 12:37:46 GMT
> Reported by Michael[tm] Smith
> Assigned to 

Audio-ISSUE-26 (NodeCreation): Node creation syntax

http://www.w3.org/2011/audio/track/issues/26

Raised by: Marcus Geelnard
On product: 

Each node has its own create* method on the AudioContext object.

A common way is to use a single method taking a string argument giving the object name and an optional parameter object for object-specific parameters.

Examples: document.createElement() and canvas.getContext().

While semantically similar, using a single create* method is probably preferable over many different create* methods (e.g less namespace pollution, clearer extensibility mechanism and more consistent with other Web interfaces).

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

Received on Wednesday, 11 September 2013 14:29:41 UTC