[whatwg] new constructor method for Path2D

Domenic Denicola domenic at domenicdenicola.com
Mon Mar 10 11:32:36 PDT 2014

What about making the Path2D constructor a property of each context? E.g.

var path = new myContext.Path2D(...);

Each context would have a different constructor tied to it, allowing this kind of optimization.

More information about the whatwg mailing list