- From: <bugzilla@jessica.w3.org>
- Date: Thu, 23 Apr 2015 01:05:48 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28546
--- Comment #4 from Ryosuke Niwa <rniwa@webkit.org> ---
(In reply to Hayato Ito from comment #3)
>
> BTW, does it mean we can update *template* later after
> document.registerElement() is called by just reassigning another template to
> MyButton.template static variable. Cool. :)
I guess that'll be an extra benefit of keying off of the class object.
I forgot to mention but we can certainly define a static variable on a class
object today by manually adding a property as follows:
class MyButton extends HTMLElement {
...
}
MyButton.template = document.getElementById('my-button-template');
so we don't have to block on ES7 to do this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 23 April 2015 01:05:56 UTC