- From: Andrea Giammarchi <notifications@github.com>
- Date: Wed, 21 Sep 2016 12:34:02 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Wednesday, 21 September 2016 19:35:02 UTC
like I've said, I'm OK with current status and extendability through `.concat` but you know what you extend so that if super has no `super.observedAttributes` you'll have an error trying to concat nothing. In few words, we are making up inexistent problems because reality would be like the following: * if super is Array and you want RegExp you can `new RegExp("your-thing|" + super.stuff.join('|'))` (simplification) * if super is Array and you want extend you use `.concat` * if super is RegExp and you want extend either copy super.observables and enrich it without even calling super or use new RegExp * if super is RegExp and you want Array, you still new RegExp(['your', 'cases'].join('|') + super.stuff) Since people will abuse these things and it's easy to get it wrong, I guess we'll stick with current status and that's it, it's like good old `Object.prototype.watch` where either you know upfront or you cannot spy on everything like a proxy would do. -- 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/565#issuecomment-248718580
Received on Wednesday, 21 September 2016 19:35:02 UTC