- From: S.A.N <notifications@github.com>
- Date: Thu, 27 Oct 2016 07:06:20 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 27 October 2016 14:07:15 UTC
> Btw, your setter has a bug that will cause infinite recursion. Fixed :) > What exactly is it that you think is a "BUG"? Do you think that we should always do so in the constructor? ```JS document.querySelector('my-custom-tag').data = 'BUG' class MyCustomTag extends HTMLElement { constructor(...args) { super(...args); if(this.data !== this.__proto__.data) { let data = this.data; delete(this.data); this.data = data; } this.innerHTML = this.data; } get data() { return this._data; } set data(value) { this._data = value } } customElements.define('my-custom-tag', MyCustomTag); ``` I would like to object instance node the object could not override the API prototype. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/598#issuecomment-256651049
Received on Thursday, 27 October 2016 14:07:15 UTC