- From: <bugzilla@jessica.w3.org>
- Date: Thu, 23 Apr 2015 00:47:41 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28546 --- Comment #3 from Hayato Ito <hayato@chromium.org> --- (In reply to Ryosuke Niwa from comment #2) > An optional dictionary might be okay. Alternatively, if ES7 adds support for > static variables, we might even consider using that e.g. (with a > hypothetical syntax for static variables): > > class MyButton extends HTMLElement { > static template = document.getElementById('my-button-template'); > } This looks a good use case for static variables. Although I don't have a strong opinion either, I prefer this static variable usage since it looks more declarative. 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. :) -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Thursday, 23 April 2015 00:47:43 UTC