- From: Domenic Denicola <domenic@domenicdenicola.com>
- Date: Mon, 2 Dec 2013 19:11:12 +0000
- To: Tab Atkins Jr. <jackalmage@gmail.com>
- CC: Elliott Sprehn <esprehn@gmail.com>, Marat Tanalin | tanalin.com <mtanalin@yandex.ru>, "www-dom@w3.org" <www-dom@w3.org>
From: Tab Atkins Jr. <jackalmage@gmail.com>
> HTML.h1 = function(...args) { return new HTMLHeadingElement("h1", ...args); };
> HTML.h1.prototype = HTMLHeadingElement.prototype;
Seems OK, but why not just
HTML.h1 = function(...args) { return new HTMLHeadingElement("h1", ...args); };
and don't call it with `new`? Having multiple constructors for the same prototype feels ... unusual ...
Received on Monday, 2 December 2013 19:12:02 UTC